Quote:
Originally Posted by Konstantinos
pawn Код:
CMD:acar(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_REDD, "[ERROR] You do not have the right's to use this command!"); if (isnull(params)) return SendClientMessage(playerid, COLOR_LGREEN, "[USAGE]{ffffff} /acar [park/etc/etc]"); if (strcmp(params, "help", true)) { // code for "/acar help" } else if (strcmp(params, "park", true)) { // code for "/acar park" } else SendClientMessage(playerid, COLOR_LGREEN, "Use: help/park etc.."); return 1; }
By the way I don't get why you save and then load the vehicle together but anyways if you want to do that then you don't need the brackets so this:
pawn Код:
SaveVehicle(vehicle); { LoadVehicle(vehicle); }
becomes:
pawn Код:
SaveVehicle(vehicle); LoadVehicle(vehicle);
|
Wow man, thanks a lot! And yeah, I wanted to make a timer for the load.