Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Use the includes from the strcmp, defines, and the dialog.
- CMD:neon(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7) {
- if(IsPlayerInAnyVehicle(playerid)) {
- 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");
- new string[128];
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- format(string, sizeof(string), "* %s has added neon to the vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else {
- SendClientMessageEx( playerid, COLOR_WHITE, "You're not in a vehicle." );
- }
- }
- else {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are not a Mechanic!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement