Commands not working properly
#3

Use curly braces.

Код:
CMD:gun(pid,params[])
{
	if(IsPlayerAdmin(playerid))
	{
		GivePlayerWeapon(pid, 38, 6000);
		GivePlayerWeapon(pid, 24, 6000);
		GivePlayerWeapon(pid, 4, 1);
		SCM(pid, COLOR_LIGHTBLUE, " You have been granted admin weapons.");
	}
	else SCM(pid, COLOR_RED, ADMIN_MESSAGE);
	return 1;
}

CMD:aod(pid, params[])
{
	if(!IsPlayerAdmin(playerid)) SCM(pid, COLOR_RED, ADMIN_MESSAGE);
	else
	{
		SPH(pid, 400);
		SetPlayerArmour(pid, 100);
		SCMToAll(COLOR_LIME, "Admin %s is now on duty. /w him for help.");
	}
	return 1;
}
Reply


Messages In This Thread
Commands not working properly - by JXF - 21.05.2016, 16:33
Re: Commands not working properly - by justjamie - 21.05.2016, 16:36
Re: Commands not working properly - by Stinged - 21.05.2016, 16:37
Re: Commands not working properly - by Konstantinos - 21.05.2016, 16:41
Re: Commands not working properly - by JXF - 21.05.2016, 17:35
Re: Commands not working properly - by Konstantinos - 21.05.2016, 19:55
Re: Commands not working properly - by JXF - 21.05.2016, 20:27
Re: Commands not working properly - by Konstantinos - 21.05.2016, 20:32
Re: Commands not working properly - by JXF - 21.05.2016, 20:48

Forum Jump:


Users browsing this thread: 2 Guest(s)