12.01.2012, 06:02
how to add time limit for this system so player must wait 1 second for use this system again
SORRY MY BAD ENGLISH
Код:
//-----------[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;

