if(dialogid==DIALOGDVEH)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1)
{
new info[128];
format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVMODEL,DIALOG_STYLE_LIST,"Change vehicle model",info,"Enter","Close");
}
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new info[128];
format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVMODEL,DIALOG_STYLE_LIST,"Change vehicle model",info,"Enter","Close");
}
}
case 1:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1)
{
new info[128];
format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVCOLOR,DIALOG_STYLE_LIST,"Change vehicle colors",info,"Enter","Close");
}
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new info[128];
format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVCOLOR,DIALOG_STYLE_LIST,"Change vehicle colors",info,"Enter","Close");
}
}
case 2:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1)
{
new info[128];
format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVPOSITION,DIALOG_STYLE_LIST,"Save the position vehicle ",info,"Enter","Close");
}
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new info[128];
format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVPOSITION,DIALOG_STYLE_LIST,"Save the position vehicle ",info,"Enter","Close");
}
}
case 3:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1)
{
new info[128];
format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVFIX,DIALOG_STYLE_LIST,"Respawn the vehicle",info,"Enter","Close");
}
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new info[128];
format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVFIX,DIALOG_STYLE_LIST,"Respawn the vehicle",info,"Enter","Close");
}
}
case 4:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1)
{
new info[128];
format(info,128,"%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVTOW,DIALOG_STYLE_LIST,"Tow the vehicle",info,"Enter","Close");
}
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new info[128];
format(info,128,"%s \n%s",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription],CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
ShowPlayerDialog(playerid,DIALOGVTOW,DIALOG_STYLE_LIST,"Tow the vehicle",info,"Enter","Close");
}
}
}
}
}
if(dialogid==DIALOGVMODEL)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1)
{
new tittle[128];
new carkey = PlayerInfo[playerid][pPcarkey];
format(tittle,128,"%s", CarInfo[carkey][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
}
else SendClientMessage(playerid,COLOR_GREY, " Trebuie sa aveti minim 2 masini ca sa schimbati modelul primei masini (/donatie)");
}
case 1:
{
new tittle[128];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
format(tittle,128,"%s", CarInfo[carkey2][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
}
}
}
}
if(dialogid==DIALOGVMODEL+1)
{
if(response)
{
if(strlen(inputtext))
{
new model;
model = strval(inputtext);
if(model < 400 && model > 611)
{
SendClientMessage(playerid, COLOR_WHITE, " Id-ul modelului trebuie sa fie cuprins intre 400 si 611");
new tittle[128];
new carkey = PlayerInfo[playerid][pPcarkey];
format(tittle,128,"%s", CarInfo[carkey][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
return 1;
}
else if(!NotModel(model))
{
CarInfo[PlayerInfo[playerid][pPcarkey]][cModel]=model;
format(string, sizeof(string), " [%s]: {3D9AD4}New vehicle model saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription], 32, "%s",vehName[model-400]);
OnPropUpdate(); SavePlayerData(playerid);
}
else
{
new tittle[128];
new carkey= PlayerInfo[playerid][pPcarkey];
format(tittle,128,"%s", CarInfo[carkey][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+1,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
SendClientMessage(playerid, COLOR_GREY, " Acest model este interzis !");
}
}
}
}
if(dialogid==DIALOGVMODEL+2)
{
if(response)
{
if(strlen(inputtext))
{
new model;
model = strval(inputtext);
if(model < 400 && model > 611)
{
SendClientMessage(playerid, COLOR_WHITE, " Id-ul modelului trebuie sa fie cuprins intre 400 si 611");
new tittle[128];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
format(tittle,128,"%s", CarInfo[carkey2][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
}
else if(!NotModel(model))
{
format(string, sizeof(string), " [%s]: {3D9AD4}New vehicle model saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
CarInfo[PlayerInfo[playerid][pPcarkey2]][cModel]=model;
format(CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription], 32, "%s",vehName[model-400]);
OnPropUpdate(); SavePlayerData(playerid);
}
else
{
new tittle[128];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
format(tittle,128,"%s", CarInfo[carkey2][cDescription]);
ShowPlayerDialog(playerid, DIALOGVMODEL+2,DIALOG_STYLE_INPUT,tittle,"Type in box vehicle model id:","Manage","Close");
SendClientMessage(playerid, COLOR_GREY, " Acest model este interzis !");
}
}
}
}
if(dialogid==DIALOGVCOLOR)
{
if(response)
{
switch(listitem)
{
case 0:
{
new tittle[128];
new carkey = PlayerInfo[playerid][pPcarkey];
format(tittle,128,"%s", CarInfo[carkey][cDescription]);
ShowPlayerDialog(playerid,DIALOGVCOLOR+1,DIALOG_STYLE_LIST,tittle,"First color\nSecond color","Enter","Close");
}
case 1:
{
new tittle[128];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
format(tittle,128,"%s", CarInfo[carkey2][cDescription]);
ShowPlayerDialog(playerid,DIALOGVCOLOR+2,DIALOG_STYLE_LIST,tittle,"First color\nSecond color","Enter","Close");
}
}
}
}
if(dialogid==DIALOGVCOLOR+1)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOGVCOLOR+3, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close");
}
case 1:
{
ShowPlayerDialog(playerid,DIALOGVCOLOR+4, DIALOG_STYLE_INPUT,"Second color", "Scrie in casuta id-ul la de-a doua culorea\n Exemple: '252' (Verde)","Manage","Close");
}
}
}
}
if(dialogid==DIALOGVCOLOR+2)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOGVCOLOR+5, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close");
}
case 1:
{
ShowPlayerDialog(playerid,DIALOGVCOLOR+6, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close");
}
}
}
}
if(dialogid==DIALOGVCOLOR+3)
{
if(response)
{
if(strlen(inputtext))
{
new color;
color = strval(inputtext);
if(color < 1 && color > 252)
{
SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID");
ShowPlayerDialog(playerid,DIALOGVCOLOR+3, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close");
}
else
{
CarInfo[PlayerInfo[playerid][pPcarkey]][cColorOne]=color;
format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
OnPropUpdate(); SavePlayerData(playerid);
}
}
}
if(dialogid==DIALOGVCOLOR+4)
{
if(response)
{
if(strlen(inputtext))
{
new color;
color = strval(inputtext);
if(color < 0 && color > 252)
{
SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID");
ShowPlayerDialog(playerid,DIALOGVCOLOR+4, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close");
}
else
{
CarInfo[PlayerInfo[playerid][pPcarkey]][cColorTwo]=color;
format(string, sizeof(string), " [%s]: {3D9AD4}New secondary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
OnPropUpdate(); SavePlayerData(playerid);
}
}
}
if(dialogid==DIALOGVCOLOR+5)
{
if(response)
{
if(strlen(inputtext))
{
new color;
color = strval(inputtext);
if(color < 0 && color > 252)
{
SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID");
ShowPlayerDialog(playerid,DIALOGVCOLOR+5, DIALOG_STYLE_INPUT,"First color", "Type in box id of first color:","Manage","Close");
}
CarInfo[PlayerInfo[playerid][pPcarkey2]][cColorOne]=color;
format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnPropUpdate(); SavePlayerData(playerid);
}
}
}
if(dialogid==DIALOGVCOLOR+6)
{
if(response)
{
if(strlen(inputtext))
{
new color;
color = strval(inputtext);
if(color < 1 && color > 252)
{
SendClientMessage(playerid, COLOR_WHITE, " Wrong Color ID");
ShowPlayerDialog(playerid,DIALOGVCOLOR+6, DIALOG_STYLE_INPUT,"Second color", "Type in box id of second color:","Manage","Close");
}
CarInfo[PlayerInfo[playerid][pPcarkey2]][cColorTwo]=color;
format(string, sizeof(string), " [%s]: {3D9AD4}New primary vehicle color id saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnPropUpdate(); SavePlayerData(playerid);
}
}
}
if(dialogid==DIALOGVPOSITION)
{
if(response)
{
switch(listitem)
{
case 0:
{
new Float:x,Float:y,Float:z,Float:a;
if(!IsPlayerInAnyVehicle(playerid))
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a;
}
else
{
GetVehiclePos(vehid,x,y,z);
GetVehicleZAngle(vehid,a);
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a;
}
format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnPropUpdate(); SavePlayerData(playerid);
}
case 1:
{
new Float:x,Float:y,Float:z,Float:a;
if(!IsPlayerInAnyVehicle(playerid))
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a;
}
else
{
GetVehiclePos(vehid,x,y,z);
GetVehicleZAngle(vehid,a);
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a;
}
format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnPropUpdate(); SavePlayerData(playerid);
}
}
}
}
if(dialogid==DIALOGVFIX)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) > 1000)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(SBizzInfo[8][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~respawned ~n~~r~-1000$", 3000, 1);
SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
SBizzInfo[8][sbProducts]--;
GivePlayerMoney(playerid, -1000);
}
else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1);
}
else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1);
}
case 1:
{
if(GetPlayerMoney(playerid) > 1000)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(SBizzInfo[8][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~respawned ~n~~r~-1000$", 3000, 1);
SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey2]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
SBizzInfo[8][sbProducts]--;
GivePlayerMoney(playerid, -1000);
}
else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1);
}
else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1);
}
}
}
}
if(dialogid==DIALOGVTOW)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) > 1000)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(SBizzInfo[8][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
//
new Float:health;
GetVehicleHealth(PlayerInfo[playerid][pPcarkey], health);
new panels,doors,lights,tires;
GetVehicleDamageStatus(PlayerInfo[playerid][pPcarkey],panels,doors,lights,tires);
//
GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~towed ~n~~r~-1000$", 3000, 1);
SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey]);
UpdateVehicleDamageStatus(PlayerInfo[playerid][pPcarkey], panels, doors, lights, tires);
SetVehicleHealth(PlayerInfo[playerid][pPcarkey],health);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
SBizzInfo[8][sbProducts]--;
GivePlayerMoney(playerid, -1000);
}
else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1);
}
else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1);
}
case 1:
{
if(GetPlayerMoney(playerid) > 1000)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(SBizzInfo[8][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
//
new Float:health;
GetVehicleHealth(PlayerInfo[playerid][pPcarkey2], health);
new panels,doors,lights,tires;
GetVehicleDamageStatus(PlayerInfo[playerid][pPcarkey2],panels,doors,lights,tires);
//
GameTextForPlayer(playerid, "~w~Donater vehicle ~n~~g~towed ~n~~r~-1000$", 3000, 1);
SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey2]);
UpdateVehicleDamageStatus(PlayerInfo[playerid][pPcarkey2], panels, doors, lights, tires);
SetVehicleHealth(PlayerInfo[playerid][pPcarkey2],health);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
SBizzInfo[8][sbProducts]--;
GivePlayerMoney(playerid, -1000);
}
else GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1);
}
else GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1);
}
}
}
}
if(dialogid==DIALOGIDSETOWNER)
{
if(response)
{
new dokee[MAX_PLAYER_NAME];
GetPlayerName(playerid,dokee,13);
if(IsPlayerInVehicle(playerid,idcar))
{
if(IsAnOwnableCar(idcar))
{
if(strlen(inputtext))
{
giveplayerid = ReturnUser(inputtext);
if(PlayerInfo[giveplayerid][pPcarkey] == -1) { }
else if(PlayerInfo[giveplayerid][pPcarkey2] == -1) { }
else { SendClientMessage(playerid, COLOR_GREY, " That player allready have 2 cars"); return 1; }
if(CarInfo[idcar][cOwned]==1)
{
SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car");
return 1;
}
if(PlayerInfo[giveplayerid][pPcarkey] == -1) { PlayerInfo[giveplayerid][pPcarkey] = idcar; }
else if(PlayerInfo[giveplayerid][pPcarkey2] == -1) { PlayerInfo[giveplayerid][pPcarkey2] = idcar; }
else { return 1; }
CarInfo[idcar][cOwned] = 1;
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
SavePlayerData(giveplayerid);
OnPropUpdate();
format(string,128, " Personal car set to %s",sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
else SendClientMessage(playerid, COLOR_GREY, " ERROR. That car is not a ownable car");
}
else SendClientMessage(playerid, COLOR_GREY, " You must be in ownable vehicle to set a personal car");
}
else return 1;
}
if(dialogid == DIALOG_NEWPASS)
{
if(response)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Users/%s.ini", sendername);
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerChangePass(playerid,tmppass);
ShowPlayerDialog(playerid, DIALOG_NEWPASS+2, DIALOG_STYLE_MSGBOX, " {CCAB52}Password was changed", " {FFE100}* Password was changed successfully.\n {009C1D}* Do not forget it!", "Hide", "");
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_NEWPASS,DIALOG_STYLE_PASSWORD, " {CCAB52}Change password"," \nType in box your new password:\n","Done","");
return 1;
}
}
return 1;
}
if(dialogid == DIALOG1WARN)
{
if(response)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s a platit $5.000.000 si un level ca sa isi scoata un warn", sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pWarns] -= 1;
PlayerInfo[playerid][pLevel] -= 1;
GivePlayerMoney(playerid, -5000000);
}
else
{
return 1;
}
}