SA-MP Forums Archive
[HELP] XSPEC XtremeAdmin!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] XSPEC XtremeAdmin!!! (/showthread.php?tid=113811)



[HELP] XSPEC XtremeAdmin!!! - BlackSkull - 16.12.2009

Personal I'm a spec of doubt in XtremeAdmin, I was wondering if anyone knows a command to add the XtremeAdmin that by the time I use "/XSPEC OFF" it saves the location, money and weapons from the player, because it does not saved when I use "/XSPEC OFF" I lose my arms, money and location. Thanks

CODE:
Код:
dcmd_xspec(playerid,params[]) {
	if(IsPlayerCommandLevel(playerid,"xspec")) {
	  if(!strlen(params)) return SendClientMessage(playerid,red,"Syntax Error: \"/XSPEC <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,"XSPEC");
		    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");
}



Re: [HELP] XSPEC XtremeAdmin!!! - HotSauce - 16.12.2009

What do you want then, To make everything save?


Re: [HELP] XSPEC XtremeAdmin!!! - BlackSkull - 16.12.2009

Yes, I want to save everything after I use specoff it back to where I am before you have used the spec. Know a command to save it?HELPPPPPPPP


Re: [HELP] XSPEC XtremeAdmin!!! - BlackSkull - 16.12.2009

Someone please help me, someone in a reply and help me!!
Someone please help me, someone in a reply and help me!!



Re: [HELP] XSPEC XtremeAdmin!!! - gijsmin - 16.12.2009

oh god, if you double post you don't need to think you get faster help


Re: [HELP] XSPEC XtremeAdmin!!! - BlackSkull - 16.12.2009

._. help?


Re: [HELP] XSPEC XtremeAdmin!!! - BlackSkull - 18.12.2009

no one will help me not! aff in people.