if(dialogid == SECOND_LOCK_DIALOG)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock1] = 1;
PlayerInfo[playerid][pVehLocked1] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLocked] = 0;
}
case 1:
{
if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock2] = 1;
PlayerInfo[playerid][pVehLocked2] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLocked] = 0;
}
case 2:
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock3] = 1;
PlayerInfo[playerid][pVehLocked3] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLocked] = 0;
}
case 3:
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock4] = 1;
PlayerInfo[playerid][pVehLocked4] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLocked] = 0;
}
case 4:
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock5] = 1;
PlayerInfo[playerid][pVehLocked5] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLocked] = 0;
}
}
}
}
if(dialogid == THIRD_LOCK_DIALOG)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock1] = 2;
PlayerInfo[playerid][pVehLocked1] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID1[playerid]);
}
case 1:
{
if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock2] = 2;
PlayerInfo[playerid][pVehLocked2] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID2[playerid]);
}
case 2:
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock3] = 2;
PlayerInfo[playerid][pVehLocked3] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID3[playerid]);
}
case 3:
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock4] = 2;
PlayerInfo[playerid][pVehLocked4] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID4[playerid]);
}
case 4:
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock5] = 2;
PlayerInfo[playerid][pVehLocked5] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID5[playerid]);
}
}
}
}
if(dialogid == 5445)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(PlayerVehicleID1[playerid] != 0)
{
chosenveh[playerid] = 1;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 1:
{
if(PlayerVehicleID2[playerid] != 0)
{
chosenveh[playerid] = 2;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 2:
{
if(PlayerVehicleID3[playerid] != 0)
{
chosenveh[playerid] = 3;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 3:
{
if(PlayerVehicleID4[playerid] != 0)
{
chosenveh[playerid] = 4;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 4:
{
if(PlayerVehicleID5[playerid] != 0)
{
chosenveh[playerid] = 5;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
}
}
}
if(dialogid == 5446)
{
if(response)
{
if(strval(inputtext) >= 0 && strval(inputtext) < 127)
{
if(chosenveh[playerid] == 1)
{
ChangeVehicleColor(PlayerVehicleID1[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle1Color2]);
PlayerInfo[playerid][pPlayerVehicle1Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 2)
{
ChangeVehicleColor(PlayerVehicleID2[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle2Color2]);
PlayerInfo[playerid][pPlayerVehicle2Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 3)
{
ChangeVehicleColor(PlayerVehicleID3[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle3Color2]);
PlayerInfo[playerid][pPlayerVehicle3Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 4)
{
ChangeVehicleColor(PlayerVehicleID4[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle4Color2]);
PlayerInfo[playerid][pPlayerVehicle4Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 5)
{
ChangeVehicleColor(PlayerVehicleID5[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle5Color2]);
PlayerInfo[playerid][pPlayerVehicle5Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2," Invalid color ID !(0-126)");
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the color 1 for the car","Choose","Cancel");
}
}
}
if(dialogid == 5447)
{
if(response)
{
if(strval(inputtext) >= 0 && strval(inputtext) < 127)
{
if(chosenveh[playerid] == 1)
{
ChangeVehicleColor(PlayerVehicleID1[playerid],PlayerInfo[playerid][pPlayerVehicle1Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle1Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 2)
{
ChangeVehicleColor(PlayerVehicleID2[playerid],PlayerInfo[playerid][pPlayerVehicle2Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle2Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 3)
{
ChangeVehicleColor(PlayerVehicleID3[playerid],PlayerInfo[playerid][pPlayerVehicle3Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle3Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 4)
{
ChangeVehicleColor(PlayerVehicleID4[playerid],PlayerInfo[playerid][pPlayerVehicle4Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle4Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 5)
{
ChangeVehicleColor(PlayerVehicleID5[playerid],PlayerInfo[playerid][pPlayerVehicle5Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle5Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2," Invalid color ID !(0-127)");
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_MSGBOX, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
}
}
if(dialogid == 11111)
{
new string[256];
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerVehicleID1[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID1[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 1:
{
if(PlayerVehicleID2[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID2[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 2:
{
if(PlayerVehicleID3[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID3[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 3:
{
if(PlayerVehicleID4[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID4[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 4:
{
if(PlayerVehicleID5[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID5[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
}
}
}
if(dialogid == 9001)
{
new i = TempCarID[playerid];
new string[256];
if(response)
{
if(PlayerInfo[playerid][pCash] >= CarInfo[i][CarPrice]) // 400k
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
ResetPlayerVehicleEx(playerid, 1);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX1] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY1] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ1] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing1] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel1] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle1Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle1Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 1);
PutPlayerInVehicle(playerid,PlayerVehicleID1[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock from any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
ResetPlayerVehicleEx(playerid, 2);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX2] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY2] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ2] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing2] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel2] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle2Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle2Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 2);
PutPlayerInVehicle(playerid,PlayerVehicleID2[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel2]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
ResetPlayerVehicleEx(playerid, 3);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX3] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY3] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ3] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing3] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel3] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle3Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle3Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 3);
PutPlayerInVehicle(playerid,PlayerVehicleID3[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel3]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 2)
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
ResetPlayerVehicleEx(playerid, 4);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX4] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY4] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ4] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing4] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel4] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle4Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle4Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 4);
PutPlayerInVehicle(playerid,PlayerVehicleID4[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel4]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 3)
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
ResetPlayerVehicleEx(playerid, 5);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX5] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY5] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ5] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing5] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel5] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle5Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle5Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 5);
PutPlayerInVehicle(playerid,PlayerVehicleID5[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel5]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have enough money!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have canceled the current dialog.");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
|