10.05.2013, 20:32
I don't see a reason for return 0.
Try this. Should work
I'm not using ZCMD so i can't test it.
Try this. Should work
pawn Код:
CMD:tune(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) return ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Paint Jobs\nColors\nHoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}