Posts: 50
Threads: 6
Joined: Mar 2012
Reputation:
0
Hey, I'm looking for someone to make me a /setskin command to change someone's (ID's) skin to whatever I want (/setskin [ID] [Skin ID]).
I don't need any admin mode or something, just need this command.
Thanks for help.
Posts: 368
Threads: 24
Joined: Feb 2012
Here, using zcmd and sscanf.
pawn Код:
CMD:setskin(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new
ID,
Skin;
if(sscanf(params, "ui", ID, Skin)) return SendClientMessage(playerid, COLOR_RED, "/setskin [name/id] [SkinID}"),
SendClientMessage(playerid, COLOR_YELLOW, "This command will set a player's skin.");
if(Skin < 0 || Skin > 299) return SendClientMessage(playerid, COLOR_YELLOW, "Invalid skin ID. Use 0-299.");
return SetPlayerSkin(ID, Skin);
}
else return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
}
Posts: 50
Threads: 6
Joined: Mar 2012
Reputation:
0
Not good, I said, whitout admin mode or something like that, I need it to everyone who's on my server to make skin to everyone, I mean, If I'm not admin, I want to change someone's skin.