#include <a_samp>new Tank[MAX_PLAYERS];public OnPlayerSpawn(playerid){new Float:X,Float:Y,Float:Z,Float:Angle;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,Angle);Tank[playerid] = CreateVehicle(432, X,Y,Z,Angle, 0, 1, 60);PutPlayerInVehicle(playerid,Tank[playerid],0);return 1;}
#include <a_samp>new Tank[MAX_PLAYERS];public OnPlayerSpawn(playerid){new Float:X,Float:Y,Float:Z,Float:Angle;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,Angle);Tank[playerid] = CreateVehicle(432, X,Y,Z,Angle, 0, 1, 60);PutPlayerInVehicle(playerid,Tank[playerid],0);return 1;} Am a mentést hogy gondoltad? Hogy a pozíciót mentse el?
#include <a_samp>new Tank[MAX_PLAYERS];public OnPlayerSpawn(playerid){ new Float:X,Float:Y,Float:Z,Float:Angle; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); Tank[playerid] = CreateVehicle(432, X,Y,Z,Angle, 0, 1, 60); PutPlayerInVehicle(playerid,Tank[playerid],0);for(new i=0; i < MAX_PLAYERS; i++){if(i == playerid) continue;SetVehicleParamsForPlayer(Tank[playerid],i,0,1);} return 1;}
#include <a_samp>new Tank[MAX_PLAYERS];public OnPlayerSpawn(playerid){new Float:X,Float:Y,Float:Z,Float:Angle;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,Angle);Tank[playerid] = CreateVehicle(432, X,Y,Z,Angle, 0, 1, 60);PutPlayerInVehicle(playerid,Tank[playerid],0);return 1;} Am a mentést hogy gondoltad? Hogy a pozíciót mentse el? Nem hanem hogy mentse le a playerhez a tank idjét,és az csak az õ tankja legyen ne tudják kivenni belõle, meg ilyenek ha felrobbanna akkor is spawnolja vissza alá [/quote]Ezt nem értem. Ha az ember úgy se tud kiszállni akkor hogy tudná valaki ellopni valakitõl a tankot? :DD
public OnPlayerExitVehicle(playerid, vehicleid){ClearAnimations(playerid);PutPlayerInVehicle(playerid, vehicleid, 0);return 1;}
Dehogynem... Csak ennyi public OnPlayerExitVehicle(playerid, vehicleid){ClearAnimations(playerid);PutPlayerInVehicle(playerid, vehicleid, 0);return 1;}