01.12.2010, 10:29
How can i make it so when they /hydra then after thay leave it it disappears after 2mins un-used instead of staying there untill restart,Any help??
Heres Code:
Thanks In Advanced!
Heres Code:
pawn Код:
if(strcmp("/hydra", cmdtext, true, 7) == 0)
{
if(gTeam[playerid] != CLASS_MERC) return SendClientMessage(playerid,RED,"[ATT]:Your Not A Mercenary!");
if(PlayerInfo[playerid][FuelAmount] < 1000)
{
return SendClientMessage(playerid, RED, "[ATT]: You Dont Have Enough Fuel For This To Be Delivered!");
}
new Float:x, Float:y, Float:z, Float:az;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, az);
CreateVehicle(520, x+5, y+5, z, az, -1, -1, 520);
SendClientMessage(playerid, RED, "[ATT]: Special Aircraft Has Arrived! (Cost: 1000 Fuel To Deliver)");
PlayerInfo[playerid][FuelAmount] = PlayerInfo[playerid][FuelAmount] -1000;
return 1;
}