Time Help.
#1

Hi,I just made the command "/heal" But I don`t want them to abuse it. So How can I make it for example after 1 minute? or if they try to abuse it,it will say "Please wait another 1 minute before using /heal again"

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
	if(IsPlayerVipType(playerid,3)) /// PREMIUM VIP
	{
	SetPlayerHealth(playerid, 10);
	}
	else SendClientMessage(playerid, COLOR_RED, "ERROR: You Are Not A Premium Vip Member!");
	return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Time Help. - by ZizPower7610 - 30.03.2013, 14:24
Re: Time Help. - by SilverKiller - 30.03.2013, 14:47
Re: Time Help. - by ZizPower7610 - 30.03.2013, 14:50
Re: Time Help. - by ZizPower7610 - 30.03.2013, 15:14
Re: Time Help. - by Pawnie - 30.03.2013, 15:18
Re: Time Help. - by SilverKiller - 30.03.2013, 15:19
Re: Time Help. - by ZizPower7610 - 30.03.2013, 15:23

Forum Jump:


Users browsing this thread: 3 Guest(s)