09.01.2013, 11:11
hey, i'm have a tuneing system i maid, but why its raise money and not down it
?
here the dialog response...
?
here the dialog response...
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1666)
{
switch(listitem)
{
case 0:
{
OnPlayerCommandText(playerid, "/Colors11");
}
case 1:
{
OnPlayerCommandText(playerid, "/Paintjobs2");
}
case 2:
{
OnPlayerCommandText(playerid, "/nitr11");
}
case 3:
{
OnPlayerCommandText(playerid, "/Rainbows");
}
case 4:
{
OnPlayerCommandText(playerid, "/Spoilers");
}
}
}
if(dialogid == 1667)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1, "You dont have enough money");
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 0 ,0);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
case 1:
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 1 ,1);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 2:
{
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 3 ,3);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
case 3:
{
{
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 93 ,93);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
case 4:
{
{
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 86 ,86);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
case 5:
{
{
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 147 ,147);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
case 6:
{
{
{
if(GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, 145 ,145);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
}
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
}
if(dialogid == 1671)
{
switch(listitem)
{
case 0:
{
{
{
if(GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid, 1)
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 2500);
}
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
case 1:
{
{
{
{
if(GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid, 2)
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 2500);
}
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
case 2:
{
{
{
if(GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid, 3)
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 2500);
}
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
}
if(dialogid == 1668)
{
switch(listitem)
{
case 0:
{
{
{
{
if(GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1008);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
case 1:
{
{
{
{
if(GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1009);
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -10000);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
case 2:
{
{
{
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
}
}
}
if(dialogid == 16771)
{
switch(listitem)
{
case 0:
{
OnPlayerCommandText(playerid, "/RainbowCar");
}
case 1:
{
OnPlayerCommandText(playerid, "/PJRainbow");
}
}
}
if(dialogid == 167112)
{
switch(listitem)
{
case 0:
{
}
case 1:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1001);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 2:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1002);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 3:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1003);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 4:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1014);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 5:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1015);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 6:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1016);
}
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 7:
{
OnPlayerCommandText(playerid, "/Spoilers2");
}
}
}
if(dialogid == 1671128)
{
switch(listitem)
{
case 0:
{
OnPlayerCommandText(playerid, "/SpoilerFlash");
}
case 1:
{
OnPlayerCommandText(playerid, "/SpoilerSultan");
}
case 2:
{
OnPlayerCommandText(playerid, "/SpoilerElegy");
}
case 3:
{
OnPlayerCommandText(playerid, "/SpoilerUranus");
}
}
}
if(dialogid == 16711234)
{
switch(listitem)
{
case 0:
{
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
if(dialogid == 16711235)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1049);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1059);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
if(dialogid == 1671123)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1148);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
if(dialogid == 16711236)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1165);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1164);
}
if(GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1, "You Dont Have Enough Money");
}
}
}
}
return 1;
}