/skin
#2

PHP код:
CMD:setskin(playeridparams[])
{
        new 
skin;
        if(
sscanf(params"u"skin)) return SendClientMessage(playerid, -1"[USAGE]: /setskin [SkinID]");//this will send an error message id he entered the wrong format or wrong id etc.
        
if(skin || skin 299) return SendClientMessage(playerid, -1"[USAGE]: Invalid skin!");//you know that there are only 299 skins in samp.if he enters a invalid skin id like 300 or so on,he will get an error message.
        
SetPlayerSkin(playeridskin);//finally if everthing goes rite,this will set the player's skin you wanted.
        
return 1;

use this,explained some.
Reply


Messages In This Thread
/skin - by Why - 31.08.2012, 18:00
Re: /skin - by TaLhA XIV - 31.08.2012, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)