Setskin Command
#1

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?
Reply
#2

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;
	}
Reply
#3

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
Reply
#4

I dont know your admin codes?
Reply
#5

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

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;
	}
Reply
#7

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
Reply
#8

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?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)