09.04.2010, 06:16
Could someone please help me in this command, When I use xspecoff I return to my start and respawn lose my arms, money and position. Could someone help me fix this annoying problem I'm having clauses.
(FS)
In FS Admin:
================================================== ================================================== =============
(GM)
GameMode Spawn after using xspecoff:
(FS)
In FS Admin:
Код:
public OnPlayerSpawn(playerid) { if(Variables[playerid][Jailed]) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,197.6661,173.8179,1003.0234); SetPlayerFacingAngle(playerid,0); } return 1; }
Код:
dcmd_spec(playerid,params[]) { if(IsPlayerCommandLevel(playerid,"spec")) { if(!strlen(params)) return SendClientMessage(playerid,red,"Syntax Error: \"/SPEC <NICK OR ID | OFF>\"."); new id; if(!IsNumeric(params)) { if(!strcmp(params,"off",true)) { if(!Spec[playerid][Spectating]) return SendClientMessage(playerid,red,"ERROR: You must be spectating."); SendCommandMessageToAdmins(playerid,"SPEC OFF"); TogglePlayerSpectating(playerid,false); Spec[playerid][Spectating] = false; return SendClientMessage(playerid,yellow,"You have turned your spectator mode off."); } id = ReturnPlayerID(params); } else id = strval(params); if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) { SendCommandMessageToAdmins(playerid,"SPEC"); new string[256],name[24]; GetPlayerName(id,name,24); if(Spec[id][Spectating]) return SendClientMessage(playerid,red,"Error: You can not spectate a player already spectating."); if(Spec[playerid][Spectating] && Spec[playerid][SpectateID] == id) return SendClientMessage(playerid,red,"ERROR: You are already spectating this player."); Spec[playerid][Spectating] = true, Spec[playerid][SpectateID] = id; SetPlayerInterior(playerid,GetPlayerInterior(id)); TogglePlayerSpectating(playerid,true); if(!IsPlayerInAnyVehicle(id)) PlayerSpectatePlayer(playerid,id); else PlayerSpectateVehicle(playerid,GetPlayerVehicleID(id)); format(string,256,"You are now spectating player \"%s\".",name); return SendClientMessage(playerid,yellow,string); } else return SendClientMessage(playerid,red,"ERROR: You can not spectate yourself or a disconnected player."); } else return SendLevelErrorMessage(playerid,"spec"); }
(GM)
GameMode Spawn after using xspecoff:
Код:
new Float:gCopPlayerSpawns[2][3] = { {2297.1064,2452.0115,10.8203}, {2297.0452,2468.6743,10.8203} };