Setting a command to a certain Player?
#8

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    new szName[ 24 ];
    GetPlayerName( playerid, szName, 24 );
    if ( GetPlayerSkin ( playerid ) == /*skin you want*/ )
    {
        if ( strcmp ( szName, "Swizzzy", true ) == 0 )
        {
            SendClientMessage( playerid, 0xffffffff, "permisson for this skin granted!");  
        }
        else
        {  
            SendClientMessage( playerid, 0xffffffff, "only swizzzy can use this skin");
            return 0; /* return 0 means he won't spawn */
        }  
    }
    return 1;
}
Reply


Messages In This Thread
Setting a command to a certain Player? - by Swizzzy - 13.09.2011, 22:25
Re: Setting a command to a certain Player? - by admantis - 13.09.2011, 22:31
Re: Setting a command to a certain Player? - by Kush - 13.09.2011, 22:34
Re: Setting a command to a certain Player? - by Swizzzy - 13.09.2011, 22:38
Re: Setting a command to a certain Player? - by admantis - 13.09.2011, 22:40
Re: Setting a command to a certain Player? - by IceCube! - 13.09.2011, 22:41
Re: Setting a command to a certain Player? - by Swizzzy - 13.09.2011, 22:46
Re: Setting a command to a certain Player? - by admantis - 13.09.2011, 23:41

Forum Jump:


Users browsing this thread: 1 Guest(s)