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

Deleted
Reply
#2

Put it on pastebin. No screenshots, nothin'? .
Reply
#3

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

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.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)