SA-MP Forums Archive
[Need] I need /skin [id] command [HELP] REP+1! - 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: [Need] I need /skin [id] command [HELP] REP+1! (/showthread.php?tid=315479)



[Need] I need /skin [id] command [HELP] REP+1! - ProdrifterX - 03.02.2012

Hello guys.. iam still redesigning my sa-mp drift server..
so. i need some cmds. like /skin
when player type example : /skin 50
and skin 50 is set on caracter :P
thanks ! REP+1!!

_________________
IP : 188.40.57.132:7777
Drift - Generation



Re: [Need] I need /skin [id] command [HELP] REP+1! - Konstantinos - 03.02.2012

ZCMD + sscanf
pawn Код:
CMD:skin( playerid, params[ ] )
{
    new
        skin;

    if( sscanf( params, "i", skin ) ) return SendClientMessage( playerid, -1, "Usage: /skin <ID>" );
    if( skin > 299 || skin < 1 ) return SendClientMessage( playerid, -1, "Invalid ID. Available Skin IDs are 1 to 299!" );
    new
        string[ 128 ];

    format( string, sizeof( string ), "You have changed your skin to %d", skin );
    SendClientMessage( playerid, -1, string );
    SetPlayerSkin( playerid, skin );
    return 1;
}



Re: [Need] I need /skin [id] command [HELP] REP+1! - ProdrifterX - 03.02.2012

Thanks a lot , but i alrdy repped you
haha


_________________________________
IP : 188.40.57.132:7777
Drift - Generation