/setskin
#10

I just whipped this command up for you. Its pretty simple. a_samp and zCMD come with a "SetPlayerSkin" variable.. so here.


Код:
CMD:setskin(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
		new
		  targetid,
		  skinid;

		if (!sscanf(params, "ii", targetid, skinid))
		{
		  if (targetid != INVALID_PLAYER_ID)
		  {
		    new
		      message[40];
		    SetPlayerSkin(targetid, skinid);
		    format(message, sizeof(message), "Your skin ID was set to '%d' by an Admin!", skinid);
		    SendClientMessage(targetid, COLOR_ORANGE, message);
		  }
		  else SendClientMessage(playerid, COLOR_GREY, "That player is not connected!");
		}
		else SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /setskin [playerid]");
	}
	else SendClientMessage(playerid, COLOR_GREY, "You are not a level 1+ Admin!");
	return 1;
}
Reply


Messages In This Thread
/setskin - by FabianoC - 09.12.2011, 18:17
Re: /setskin - by remyguys - 09.12.2011, 18:19
Re: /setskin - by MadeMan - 09.12.2011, 18:20
Re: /setskin - by remyguys - 09.12.2011, 18:21
Re: /setskin - by -Rebel Son- - 09.12.2011, 18:22
Re: /setskin - by FabianoC - 09.12.2011, 18:23
Re: /setskin - by remyguys - 09.12.2011, 18:24
Re: /setskin - by FabianoC - 10.12.2011, 07:58
Re: /setskin - by Kostas' - 10.12.2011, 08:12
Re: /setskin - by BarFix - 22.08.2015, 20:09

Forum Jump:


Users browsing this thread: 8 Guest(s)