[FilterScript] Simple Repair and Heal command (Simple for newbs)
#5

Quote:
Originally Posted by xF4Life
View Post
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;
}
thats all, it's simple, again..
it's "useless" atleast make an dialog or clickable with all weapons to choose.
Woot da fook. Magical Engineers? r u like 10 or sumthin?
Reply


Messages In This Thread
Deleted - by kingcrome - 31.10.2013, 19:25
Re: Simple Repair and Heal command (Simple for newbs) - by DanishHaq - 31.10.2013, 19:38
Re: Simple Repair and Heal command (Simple for newbs) - by kingcrome - 31.10.2013, 19:49
Re: Simple Repair and Heal command (Simple for newbs) - by xF4Life - 31.10.2013, 22:29
Re: Simple Repair and Heal command (Simple for newbs) - by FlawPaw - 01.11.2013, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)