Simple /setskin cmd problem
#3

Код:
CMD:setskin(playerid,params[])
{
	if(pInfo[playerid][pLevel] >= 1)
	{
        new id,skinid;
	    if(sscanf(params, "ui", id, skinid)) return
		SendClientMessage(playerid, yellow, "Usage: /Setskin <PlayerID> <skin ID>") ;
        if(IsPlayerConnected(id))
		{
            if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, red, "Invaild Skin ID!");
            format(Jstring,sizeof(Jstring),"You have set %s's skin to %d", GetName(id), skinid);
			SendClientMessage(playerid,yellow,Jstring);
			format(Jstring, sizeof(Jstring), "Admin %s has given you a new skin (SkinID: %d)",GetName(playerid),skinid);
			SendClientMessage(id,lighterblue,Jstring);
			CommandToAdmins(playerid,"setskin");
   			return SetPlayerSkin(id, skinid);
	    }
		else return ShowMessage(playerid, red, 2);
	}
	else return ShowMessage(playerid, red, 1);
}
There you go.. just change it to your language
Reply


Messages In This Thread
Simple /setskin cmd problem - by Sturra - 02.07.2014, 19:26
Re: Simple /setskin cmd problem - by Konstantinos - 02.07.2014, 19:38
Re: Simple /setskin cmd problem - by YanLanger - 02.07.2014, 19:47
Re: Simple /setskin cmd problem - by Sturra - 02.07.2014, 19:51
Re: Simple /setskin cmd problem - by YanLanger - 02.07.2014, 19:52
Re: Simple /setskin cmd problem - by Sturra - 02.07.2014, 19:56
Re: Simple /setskin cmd problem - by YanLanger - 02.07.2014, 19:58
Re: Simple /setskin cmd problem - by Sturra - 02.07.2014, 20:02
Re: Simple /setskin cmd problem - by YanLanger - 02.07.2014, 20:05
Re: Simple /setskin cmd problem - by SHE790 - 02.07.2014, 20:17

Forum Jump:


Users browsing this thread: 2 Guest(s)