23.11.2011, 20:01
(
Последний раз редактировалось jamiesage123; 23.11.2011 в 20:59.
)
I think i understand what you mean.
You want to be able to just do /pullover instead of /pullover [param]
If so; replace:
With:
If i'm correct, isnull(params) is checking to see if your command has any text with it (E.G: /pullover [text]).
You want to be able to just do /pullover instead of /pullover [param]
If so; replace:
pawn Код:
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/pullover");
else if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle.");
pawn Код:
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle.");