08.01.2014, 05:39
You can use this one .I tested and it works :
Код:
CMD:spawncar(playerid, params[]) { new currentvehicle; currentvehicle = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { DestroyVehicle(currentvehicle); ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,""COL_RED"Cars:",""COL_GREEN"Infernus\n"COL_GREEN"Elegy\n"COL_GREEN"Turismo\n"COL_GREEN"NRG\n"COL_GREEN"Comet\n"COL_GREEN"Huntley\n"COL_GREEN"Club\n","Select","Cancel") } else { ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,""COL_RED"Cars:",""COL_GREEN"Infernus\n"COL_GREEN"Elegy\n"COL_GREEN"Turismo\n"COL_GREEN"NRG\n"COL_GREEN"Comet\n"COL_GREEN"Huntley\n"COL_GREEN"Club\n","Select","Cancel"); } return 1; }