Help Add CMD limit in this system
#1

how to add time limit for this system so player must wait 1 second for use this system again

Код:
//-----------[barrel trap]----------------//
	if (newkeys == KEY_SUBMISSION)
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
			new
				Float:x,
				Float:y,
				Float:z;
			{
		  	  if(GetPlayerMoney(playerid) >= 2000)
 	 			{
            		GetPlayerPos(playerid, x, y, z);
					CreateObject(1225,x,y,z, 0.00, 0.00, 0.00);
                    SendClientMessage(playerid,purple,"You have put a trap");
					GivePlayerMoney(playerid, -2000);
				}
   				else
				{
					SendClientMessage(playerid,purple,"You Dont Have Enough Money");
				}
			}
		
		}
		return 1;
SORRY MY BAD ENGLISH
Reply


Messages In This Thread
Help Add CMD limit in this system - by dickyodie - 12.01.2012, 06:02
Re: Help Add CMD limit in this system - by JamesC - 12.01.2012, 06:53

Forum Jump:


Users browsing this thread: 3 Guest(s)