27.09.2012, 21:02
i have another problem after it happend the vehicle does not respawn...
Код:
if(newstate == PLAYER_STATE_ONFOOT && isDelivering[playerid] == 1) { new playerveh = GetPlayerVehicleID(playerid); SendClientMessage(playerid, COLOR_NEWS, "You left your bike, and failed the mission"); DisablePlayerCheckpoint(playerid); isDelivering[playerid] = 0; LCP[playerid] = 0; KillTimer(pizzatimer[playerid]); TextDrawSetString(Textdraw38[playerid], ""); TogglePlayerControllable(playerid, 1); TextDrawHideForPlayer(playerid,Textdraw38[playerid]); PutPlayerInVehicle(playerid, playerveh, 0); TogglePlayerControllable(playerid,1); SetVehicleToRespawn(playerveh); }