29.08.2011, 18:13
I'm newbie in coding but i dont see nothing hard there. :S
aheal
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; } |