Jump to content
  • 0

Question

Posted

Ma poate ajuta cineva cu comanda /setskin ? Mam chinuit sa o bag si imi da dont send la PAWNO dar la altele nu..

<a href="http://www.game-state.eu/94.60.40.50:7777/"><img src="http://www.game-state.eu/94.60.40.50:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

1 answer to this question

Recommended Posts

Posted
if(strcmp(cmd, "/setskin", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /setskin [ Name / Id ] [skin model]");
				return 1;
			}
			new playa;
			new health;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			health = strval(tmp);
			if(health > 299 || health < 1) { SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); return 1; }
			if (PlayerInfo[playerid][pAdmin] >= 4)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			            new name[20];
						new victim[20];
						GetPlayerName(playerid, name, sizeof(name));
						GetPlayerName(playa, victim, sizeof(victim));
						PlayerInfo[playa][pModel] = health;
						PlayerInfo[playa][pChar] = health;
						SetPlayerSkin(playa, PlayerInfo[playa][pChar]);
						format(string, 128, "AdmWarning: %s has set %s's skin to %d.", sendername,giveplayer,health);
						ABroadCast(COLOR_YELLOW,string,1);
						format(string, 128, "{FFFFFF}%s{32CBFF} has set {FFFFFF}%s{32CBFF}'s hp to {FFFFFF}%d{32CBFF}.", sendername,giveplayer,health);
						SendClientMessage(playa,COLOR_YELLOW,string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nu ai level-ul de admin suficient pentru a folosi aceasta comanda.");
			}
		}
		return 1;
	}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.