20.09.2017, 06:03
Excuse me guys im new in this lenguage of pawn and im trying to make a /setskin command but i dont knwo how you save the skins on any user, i already have defined "pSkin" this is my code:
can you help me please.thank you in advance
PHP Code:
CMD:setskin(playerid, params[])
{
new userid, skinid;
if (sscanf(params, "ui", userid, skinid))
return SendClientMessage(playerid, COLOR_GRAD, "USAGE: /setskin [Playerid/PartOfName] [Skin ID]");
if (!IsPlayerConnected(userid))
return SendClientMessage(playerid, COLOR_GRAD, "That player is Offline!");
if (!(0 <= skinid <= 311))
return SendClientMessage(playerid, COLOR_GRAD, "Skin can't be below 0 or above 311");
SetPlayerSkin(userid, skinid);
return 1;
}