Admin skin
#1

hi how to make a skin for admin olny? command?

/staffskin
Reply
#2

Код:
COMMAND:staffskin(playerid,params[])
{
    if(PlayerAdmin[playerid] < 1) return SendClientMessage(playerid,COLOR_RED,"You are not an Admin!"); //Your Admin Variable here
{
       SetPlayerSkin(playerid, 217);
    }
    return 1;
}
Reply
#3

I made it for Rcon admins only
pawn Код:
if (strcmp("/staffskin", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,-1,"You are not allowed to use this command");
        SetPlayerSkin(playerid,217);

        return 1;
    }
Reply
#4

error 017: undefined symbol "Your"
error 017: undefined symbol "Admin"
error 017: undefined symbol "Variable"
Reply
#5

Fixed now, i forgot to add the //
Reply
#6

Quote:
Originally Posted by Blackazur
Посмотреть сообщение
Код:
COMMAND:staffskin(playerid,params[])
{
    if(PlayerAdmin[playerid] < 1) return SendClientMessage(playerid,COLOR_RED,"You are not an Admin!"); //Your Admin Variable here
	{
       SetPlayerSkin(playerid, 217);
    }
    return 1;
}
Wrong,Why did you return?that won't work what you just said in English is, if i'm an admin return and don't set my skin.
Remove the brackets and add the ! character or remove the return.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)