Woozie Player Class / godmode
#4

ok you put a new variable at top of script

new oldskin[MAX_PLAYERS];

now under OnPlayerSpawn

You put skinold[playerid] = GetPlayerSkin(playerid);

now the Skin the player spawns is saved into this Variable

Now on commands add this one!


Example of what too do you can change adminoff to unwearskin etc.

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/adminoff", cmdtext, true, 10) == 0)
	{
SetPlayerSkin(playerid, skinold[playerid]);
		return 1;
		
	}
And there is another methord but i suggest the one above more unique but you can just do a setskin


Code:
	if(strcmp(cmd, "/setskin", true) == 0)
	{
  if(PlayerInfo[playerid][pAdmin] >= 1) {
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))	{
			SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setskin [playerid] [skinid]");
			return 1;
			}
Hope this help's you need help just message back.
Reply


Messages In This Thread
Woozie Player Class / godmode - by StrickenKid - 01.02.2009, 16:52
Re: Woozie Player Class / godmode - by [4k]Wang - 01.02.2009, 17:02
Re: Woozie Player Class / godmode - by StrickenKid - 01.02.2009, 17:11
Re: Woozie Player Class / godmode - by [4k]Wang - 01.02.2009, 17:26
Re: Woozie Player Class / godmode - by StrickenKid - 01.02.2009, 18:00
Re: Woozie Player Class / godmode - by [4k]Wang - 01.02.2009, 18:13
Re: Woozie Player Class / godmode - by StrickenKid - 01.02.2009, 18:46
Re: Woozie Player Class / godmode - by [4k]Wang - 01.02.2009, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)