SA-MP Forums Archive
Setskin Command - 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: Setskin Command (/showthread.php?tid=147258)



Setskin Command - Drowzz - 11.05.2010

Heeeey People,
Can someone make a script for me?
When i (AS ADMIN) typ:
/setskin PLAYERID SKINID
This is what i want?
So please can someone fix it for me?


Re: Setskin Command - -Rebel Son- - 11.05.2010

Ok look at this.
Код:
	if(strcmp(cmd, "/skin", true) == 0)
	{
	new skin;
	tmp = strtok(cmdtext, idx);
	skin = strval(tmp);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /skin [0 - 299]");
	if(skin >= 300) return SendClientMessage(playerid, COLOR_RED, "Skins: [0 - 299");
	SetPlayerSkin(playerid, skin);
	return 1;
	}



Re: Setskin Command - mamorunl - 11.05.2010

Quote:
Originally Posted by [N
BL!nk [DMU - 208.43.133.131:6600] ]
Ok look at this.
Код:
	if(strcmp(cmd, "/skin", true) == 0)
	{
	new skin;
	tmp = strtok(cmdtext, idx);
	skin = strval(tmp);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /skin [0 - 299]");
	if(skin >= 300) return SendClientMessage(playerid, COLOR_RED, "Skins: [0 - 299");
	SetPlayerSkin(playerid, skin);
	return 1;
	}
You didn't include the 'admin'-part


Re: Setskin Command - -Rebel Son- - 11.05.2010

I dont know your admin codes?


Re: Setskin Command - Faith - 11.05.2010

if your admin is with gteam, then simply add
if(gteam[playerid] == Admin ) {


Re: Setskin Command - aircombat - 11.05.2010

k dude here is the command , but u have to login to rcon to use it :

Код:
     if(strcmp(cmd, "/skin", true) == 0)
     {
     if(IsPlayerAdmin(playerid))
     {
	new skin;
	tmp = strtok(cmdtext, idx);
	skin = strval(tmp);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /skin [0 - 299]");
	if(skin >= 300) return SendClientMessage(playerid, COLOR_RED, "Skins: [0 - 299]");
	SetPlayerSkin(playerid, skin);
     } else { SendClientMessage(playerid,COLOR_RED,"You Have To Login To Rcon To Use This Command"); }
	return 1;
	}



Re: Setskin Command - Drowzz - 11.05.2010

I mean, That i can typ /changenick PLAYER ID SKIN ID...
This is now a command for admins only
I would give permission to A player



Re: Setskin Command - mamorunl - 11.05.2010

Quote:
Originally Posted by Drowzz
I mean, That i can typ /changenick PLAYER ID SKIN ID...
This is now a command for admins only
I would give permission to A player
Could you share with us the way you have set your admin levels?

By the way, you say changenick now, but you said changeskin earlier. Is this a new command that you want or.. do you have a typo in one of the above?


Re: Setskin Command - Drowzz - 11.05.2010

1 t/m 20 And 1337
So.... and i mean setskin


Re: Setskin Command - IcyBlight - 11.05.2010

What he wants is a command to set the skin of another player. Your command sets the skin of the admin himself.