skin only for admins! +rep!
#1

hi,

i want that certain skin is only for admins and not for normal players.
But some players still can choose the admin skin. (in class selection)
Why?
Note: they cant use admin commands only they can choose an admin skin SOMETIMES.

pawn Код:
//OnPlayerRequestSpawn
switch(GetPlayerSkin(playerid))
{
    case 84:
    {
        if(player[playerid][admin] == 0)
        {
            SendClientMessage(playerid,0xE100E1FF,"Only admins!");
            return 0;
        }
    }
    //further skins/cases...
}
+rep for help
Reply
#2

EDIT: NEVERMIND, I try to help..But its not worth it with people like this person.
Reply
#3

thats really not that what i asked for...
Any other ideas?
Reply
#4

EDIT: NEVERMIND, I try to help..But its not worth it with people like this person.
Reply
#5

if the question in my first post is not specific enough for you then please keep out of this thread!
Reply
#6

ideas?
Reply
#7

Not sure.
pawn Код:
public OnPlayerRequestSpawn( playerid )
{
    if( GetPlayerSkin( playerid ) == 84 )
    {
        if( player[ playerid ][ admin ] == 0)
        {
            SendClientMessage( playerid, 0xE100E1FF,"Only admins!" );
            return 0;
        }
    }
    // Rest
    return 1;
}
Reply
#8

You don't even need such a difficult code, look at this here I've posted a longer time ago:

https://sampforum.blast.hk/showthread.php?tid=315918
Reply
#9

pawn Код:
//OnPlayerRequestSpawn
switch(GetPlayerSkin(playerid))
{
    case 84:
    {
        if(player[playerid][admin] == 0)
        {
            SendClientMessage(playerid,0xE100E1FF,"Only admins!");
            //Do any action like        
           SetPlayerSkin(playerid, 277);//your skin id..Best way if a user takes a admin skin it will give him other skin with a message Only admins

            return 0;
        }
    }
    //further skins/cases...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)