Quote:
Originally Posted by PowerPC603
You've added 2 checks that actually are valid both at the same time when the player is inside a vehicle as driver.
If the player is a driver, he's also automatically inside a vehicle, so no need to check for both.
You cannot have a state as driver when you're not inside a vehicle.
This will suffice:
pawn Код:
CMD:neon(playerid,params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { ShowPlayerDialog(playerid, NEONMENU, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel"); } else SendClientMessage(playerid, 0x00FFFFAA, "You Are Not Inside Vehicle"); return 1; }
|
Oh thanks for your suggestion i will change it later