06.03.2014, 18:48
This is my Command ...
I want to add if Player is not in a Vehicle = You are not in a Vehicle
and If he get out of Car "StopRadio"
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/radio", true)) { new string[3000]; strcat(string,"{FF0000}Stop Radio\n"); strcat(string,"{0000FF}181.FM - POWER 181\n"); strcat(string,"{006400}181.FM - Chilled\n"); strcat(string,"{FF8C00}181.FM - Party\n"); strcat(string,"{008000}181.FM - Highway 181\n"); strcat(string,"{4B00B0}181.FM - Kickin' Country\n"); strcat(string,"{00FF00}COUNTRY 108\n"); strcat(string,"{FFC0CB}DEFJAY.COM - 100% R&B\n"); strcat(string,"{A52A2A}Antena1 SP 94,7 FM\n"); strcat(string,"{808080}idobi Radio\n"); strcat(string,"{FF0000}America Country Radio\n"); strcat(string,"{0000FF}Absolutely Smooth Jazz - SKY.FM\n"); strcat(string,"{006400}SmoothJazz.com Global Radio\n"); strcat(string,"{FF8C00}CnR Radio\n"); strcat(string,"{008000}))) POLSKASTACJA .PL )))\n"); strcat(string,"{4B00B0}NOISEfm.pl - Niezalezne Radio Rock\n"); strcat(string,"{00FF00}RadioTeenTal Indian and Bollywood\n"); strcat(string,"{FFC0CB}DUBSTEP.FM\n"); strcat(string,"{A52A2A}PARTY VIBE RADIO\n"); strcat(string,"{808080}RADIO ORO MARBELLA EN DIRECTO\n"); strcat(string,"{FF0000}Radio Nueva Vida\n"); strcat(string,"{4B00B0}Radio538\n"); strcat(string,"{A52A2A}Back2Noize Hardstyle\n"); strcat(string,"{0000FF}Radio Hardstyle\n"); strcat(string,"{A52A2A}Studio Brussel\n"); strcat(string,"{FFC0CB}MNM Belgium\n"); ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST,"{ADD8E6}mmtech {90EE90}Radio",string,"Select","Cancel"); return 1; } |
and If he get out of Car "StopRadio"