14.07.2014, 04:56
I did, still the cmds are not working IG, but I think, Why would the cmds work if I never write somewhere in the pawno /repair /heal /armour.
EDIT: Yep the cmds works lolz, I forgot to login as a admin. so yep thank you for help. but 1thing, when I am not in a car it doesn't say ERROR:You're not in a car. why?
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { return 1; } CMD:heal(playerid, params[]) { SetPlayerHealth(playerid, 100.00); return 1; } CMD:armour(playerid, params[]) { SetPlayerArmour(playerid, 100.00); return 1; } CMD:repair(playerid, params[]) { if (IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ERROR: You're not in a vehicle."); RepairVehicle(GetPlayerVehicleID(playerid)); return 1; } |