Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

/setskin

$
0
0
Excuse me guys i made this code but im new in pawn lenguage and i want to save the skin in my variable pSkin in user folder how can i do it?

PHP Code:

CMD:setskin(playeridparams[])
{
    new 
useridskinid;
    if (
sscanf(params"ui"useridskinid))
        return 
SendClientMessage(playeridCOLOR_GRAD"USAGE: /setskin [Playerid/PartOfName] [Skin ID]");

    if (!
IsPlayerConnected(userid))
        return 
SendClientMessage(playeridCOLOR_GRAD"That player is Offline!");

    if (!(
<= skinid <= 311))
        return 
SendClientMessage(playeridCOLOR_GRAD"Skin can't be below 0 or above 311");
    
    
SetPlayerSkin(useridskinid);
    return 
1;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>