22.02.2012, 16:31
I don't understand why my vehicle spawner don't work..
this is an example
i hanven't any error or warning.. but vehicle doesn't spawn when i type the cmd
Please help me..
this is an example
pawn Код:
if (!strcmp("/PoliceLS", cmdtext, true))
{
if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
new Float:X,Float:Y,Float:Z,Float:ROT;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle (playerid,ROT);
SpawnedVehicles[playerid] = CreateVehicle(596,X,Y,Z,ROT,-1,-1,60);
PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
GameTextForPlayer(playerid,"~h~~w~Police LS~n~~h~~w~ID:~h~~r~596",2500,1);
return 1;
}
Please help me..