SA-MP Forums Archive
[FilterScript] Simple Repair and Heal command (Simple for newbs) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple Repair and Heal command (Simple for newbs) (/showthread.php?tid=472961)



Deleted - kingcrome - 31.10.2013

Deleted


Re: Simple Repair and Heal command (Simple for newbs) - DanishHaq - 31.10.2013

Put it on pastebin. No screenshots, nothin'? .


Re: Simple Repair and Heal command (Simple for newbs) - kingcrome - 31.10.2013

Thank you for the tip!
http://pastebin.com/GEQqipU7
Its only 2 commands I dont think there is a point of a Screenshot


Re: Simple Repair and Heal command (Simple for newbs) - xF4Life - 31.10.2013

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.


Re: Simple Repair and Heal command (Simple for newbs) - FlawPaw - 01.11.2013

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?