02.12.2009, 20:54
when i do /v spawn1 and i go ingame i do /v spawn1 nothing happens it is suposed to be spawn ur vehicle but nothing happens heres my command
Код:
else if(strcmp(x_nr,"spawn1",true) == 0) { new carid; new getcarid; if(CarInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3]) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(getcarid == carid) { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); format(string, sizeof(string), "~n~ You have spawned your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have spawned your vehicle in this location. It will respawn here.", 10000, 3); OnPropUpdate(); OnPlayerUpdate(playerid); TogglePlayerControllable(playerid, 1); return 1; } } }