Script problem,
#1

listen I added this script and when I typing /fg it must give me full weapons set and armor, but it write in the game "invalid player specified",
what should I do?
(Role Play server)

Код:
CMD:fg(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 8)
	{
		new giveplayerid;
		if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /fg(fullgear) [playerid]");

		if(IsPlayerConnected(giveplayerid))
		{
			SetPlayerHealth(giveplayerid, 100);
			SetPlayerArmour(giveplayerid, 100);
			GivePlayerValidWeapon(giveplayerid, 27, 60000);
		    GivePlayerValidWeapon(giveplayerid, 24, 60000);
		    GivePlayerValidWeapon(giveplayerid, 31, 60000);
		    GivePlayerValidWeapon(giveplayerid, 34, 60000);
		    GivePlayerValidWeapon(giveplayerid, 29, 60000);
			return 1;
		}
	}
	else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
	return 1;
}
Reply


Messages In This Thread
Script problem, - by RayStone - 02.12.2013, 07:24
Re: Script problem, - by Kyosaur - 02.12.2013, 07:30
Re: Script problem, - by iZN - 02.12.2013, 07:38
Re: Script problem, - by RayStone - 02.12.2013, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)