SA-MP Forums Archive
Admin skin - 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)
+--- Thread: Admin skin (/showthread.php?tid=402247)



Admin skin - DerickClark - 25.12.2012

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

/staffskin


AW: Admin skin - Blackazur - 25.12.2012

Код:
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;
}



Re: Admin skin - DaRk_RaiN - 25.12.2012

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



Re: Admin skin - DerickClark - 25.12.2012

error 017: undefined symbol "Your"
error 017: undefined symbol "Admin"
error 017: undefined symbol "Variable"


AW: Admin skin - Blackazur - 25.12.2012

Fixed now, i forgot to add the //


Re: AW: Admin skin - DaRk_RaiN - 25.12.2012

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.