19.10.2012, 14:19
Quote:
Can someone edit a carmenu (carspawner) to this list:
Euros Elegy Sultan Jester Bullet Infernus Turismo I have a drift server and current car spawners have bikes and planes and i don't like it. THANK YOU !! |
Код:
#include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/carmenu")) { ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "CarMenu", "Euros\nElegy\nSultan\nJester\nBullet\nInfernus\nTurismo", "Spawn", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 7) { if(!response) return 1; switch(listitem) { case 0: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(587, , , 999999); } case 1: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(562, , , 999999); } case 2: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(560, , , 999999); } case 3: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(559, , , 999999); } case 4: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(541, , , 999999); } case 5: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(411, , , 999999); } case 6: { if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, 0, "- The prices is 0$ ! -"); GivePlayerMoney(playerid, -0); CreateVehicle(451, , , 999999); } } } return 1; }