Advertisement
dankkush

Neon System R1 - ZCMD

Dec 30th, 2012
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. //Use the includes from the strcmp, defines, and the dialog.
  2. CMD:neon(playerid, params[])
  3. {
  4. if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7) {
  5. if(IsPlayerInAnyVehicle(playerid)) {
  6. ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "| Select a neon to add. |", "Dark Blue\nRed\nGreen\nWhite\nPurple\nYellow\nBlue\nLight Blue\nPink\nOrange\nLight Green (Lime)\nCyan\nRemove all neon", "Choose", "Cancel");
  7. new string[128];
  8. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  9. format(string, sizeof(string), "* %s has added neon to the vehicle.", GetPlayerNameEx(playerid));
  10. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11. }
  12. else {
  13. SendClientMessageEx( playerid, COLOR_WHITE, "You're not in a vehicle." );
  14. }
  15. }
  16. else {
  17. SendClientMessageEx(playerid, COLOR_WHITE, "You are not a Mechanic!");
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement