24.06.2012, 23:51
try this but i dont understand the SpawnedVehicles[playerid]
Код:
if (!strcmp("/PoliceLS", cmdtext, true)) { if(IsPlayerInAnyVehicle(playerid)) { DestroyVehicle(GetPlayerVehicleID(playerid)); } new Float:X,Float:Y,Float:Z,Float:ROT; new PoliceLSv; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle (playerid,ROT); PoliceLSv = CreateVehicle(596,X,Y,Z,ROT,-1,-1,60); PutPlayerInVehicle(playerid,PoliceLSv,0); GameTextForPlayer(playerid,"~h~~w~Police LS~n~~h~~w~ID:~h~~r~596",2500,1); return 1; }