26.10.2010, 18:48
How can i make it so if thay dont have 1000 fuel thay cant do this command?(Cost them 1000 fuel to do this command)
Thanks.
Код:
if(strcmp("/extract", cmdtext, true, 5) == 0) { new Float:x, Float:y, Float:z, Float:az; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, az); CreateVehicle(487, x+5, y+5, z, az, -1, -1, 180); SendClientMessage(playerid, RED, "[ATT]: Extraction Has Arrived! (Cost: 1000 Fuel To Deliver)"); PlayerInfo[playerid][FuelAmount] = PlayerInfo[playerid][FuelAmount] -1000; return 1; }