14.07.2014, 21:39
It's kinda messed up,
If a random players connect, and types /repair while he is not in a car the following appears: SERVER:Unknown Command , and "You're Not in a Vehicle". BUT I want that "You're not in a vehicle" doesn't appear. please help. AND if a random player is in a car and types /repair then appears SERVER:Unknown Command, but the car repairs?? weird.
SO MY QUESTION IS THIS: Can you make it that ONLY admins can use /repair and if a random players types /repair the server says SERVER:Unknown Command. and If a admin types /repair while not in car this appears: "ERROR: You're not in a vehicle" and if a admin is in a car and types /repair this appears: "Vehicle Repaired"
Quote:
CMD:repair(playerid, params[]) { if (!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, -1, "SERVER:Unknown Command."); } else if (IsPlayerAdmin(playerid)) { SendClientMessage(playerid, -1, "Vehicle repaired"); } if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ERROR: You're not in a vehicle."); { RepairVehicle(GetPlayerVehicleID(playerid)); } return 1; } |
SO MY QUESTION IS THIS: Can you make it that ONLY admins can use /repair and if a random players types /repair the server says SERVER:Unknown Command. and If a admin types /repair while not in car this appears: "ERROR: You're not in a vehicle" and if a admin is in a car and types /repair this appears: "Vehicle Repaired"