[Need] I need /skin [id] command [HELP] REP+1!
#1

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
Reply
#2

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;
}
Reply
#3

Thanks a lot , but i alrdy repped you
haha


_________________________________
IP : 188.40.57.132:7777
Drift - Generation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)