How to add /afix and /aheal
#6

I'm newbie in coding but i dont see nothing hard there. :S

aheal

Quote:

if (strcmp("/aheal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
return 1;
}

Quote:

if (strcmp("/afix", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000.0); // 1000 is full vehicle health
SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle has been successfully repaired"); // Don't forget to define color yellow at the top
return 1;
}

Reply


Messages In This Thread
How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:02
Re: How to add /afix and /aheal - by Jafet_Macario - 29.08.2011, 18:04
Re: How to add /afix and /aheal - by =WoR=Varth - 29.08.2011, 18:07
Re: How to add /afix and /aheal - by HotPlayer - 29.08.2011, 18:10
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:11
Re: How to add /afix and /aheal - by Kobatz - 29.08.2011, 18:13
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:15
Re: How to add /afix and /aheal - by [MG]Dimi - 29.08.2011, 18:18
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:22
Re: How to add /afix and /aheal - by Kingunit - 29.08.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)