31.10.2013, 19:25
(
Last edited by kingcrome; 01/11/2013 at 08:27 AM.
Reason: Deleted
)
Deleted
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/repair", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xAA3333AA, "You do not have enough money"); new vehicleid = GetPlayerVehicleID(playerid); SetVehicleHealth(vehicleid, 1000); RepairVehicle(GetPlayerVehicleID(playerid)); GivePlayerMoney(playerid, -500); SendClientMessage(playerid, 0xAA3333AA, "The vehicle has been repaired by Magical engineers sadly they took $500!"); } if (strcmp("/healme", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, 0xAA3333AA, "You do not have enough money"); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerMoney(playerid, -200); SendClientMessage(playerid, 0xAA3333AA, "You have been given Health and Armour from Karsars Magical Doctors Sadly they took $200!"); } return 1; }
Another useless FS,
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/repair", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xAA3333AA, "You do not have enough money"); new vehicleid = GetPlayerVehicleID(playerid); SetVehicleHealth(vehicleid, 1000); RepairVehicle(GetPlayerVehicleID(playerid)); GivePlayerMoney(playerid, -500); SendClientMessage(playerid, 0xAA3333AA, "The vehicle has been repaired by Magical engineers sadly they took $500!"); } if (strcmp("/healme", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, 0xAA3333AA, "You do not have enough money"); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerMoney(playerid, -200); SendClientMessage(playerid, 0xAA3333AA, "You have been given Health and Armour from Karsars Magical Doctors Sadly they took $200!"); } return 1; } it's "useless" atleast make an dialog or clickable with all weapons to choose. |