SA-MP Forums Archive
help with 2 scripts - 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: help with 2 scripts (/showthread.php?tid=475476)



help with 2 scripts - GrOobY - 13.11.2013

how to /setmyskin [id] with sscanf

and i use /repair to repair a vehicle use a giveplayermoney -10 how to made this 10$ to give on my account (My Nick is GrOobY[BS] help me !!!)


Re: help with 2 scripts - Konstantinos - 13.11.2013

pawn Code:
CMD:setmyskin( playerid, params[ ] )
{
    new
        skinid
    ;
    if( sscanf( params, "i", skinid ) ) return SendClientMessage( playerid, -1, "Usage: /setmyskin <skinid>" );
    if( skinid < 0 || skinid > 299 || skinid == 74 ) return SendClientMessage( playerid, -1, "Valid skins: 0-73 and 75-299" );
   
    SetPlayerSkin( playerid, skinid );
    return 1;
}