Nekem ilyen nrg lehívom van pl 90 fokban állok beírom /nrg egybõl ráül és ugyanúgy 90 fokba rak az nrg re.
Kódja:
ZCMD:
COMMAND:nrg(playerid,params[])
{
new NRG[MAX_PLAYERS];
new Float:P[4];
if( NRG[playerid] > 0 ) DestroyVehicle(NRG[playerid]);
if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
GetPlayerPos(playerid,P[0],P[1],P[2]);
GetPlayerFacingAngle(playerid, P[3]);
NRG[playerid] = CreateVehicle(522,P[0],P[1],P[2], P[3], -1,-1,-1);
PutPlayerInVehicle(playerid, NRG[playerid], 0);
LinkVehicleToInterior(NRG[playerid], GetPlayerInterior(playerid));
return 1;
}