/repair cmd help
#1

It's kinda messed up,
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;
}

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"
Reply


Messages In This Thread
/repair cmd help - by saffierr - 14.07.2014, 21:39
Re : /repair cmd help - by ManuelNeuer - 14.07.2014, 22:02
Re: /repair cmd help - by azzerking - 14.07.2014, 22:05
Re: /repair cmd help - by saffierr - 14.07.2014, 23:23
Re: /repair cmd help - by saffierr - 14.07.2014, 23:25
Re: /repair cmd help - by HolisticDev - 14.07.2014, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)