Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SetPlayerPNS()
- {
- foreach(Player, x)
- {
- new carid = GetPlayerVehicleID(x),
- Float:health,
- string[256];
- if(IsPlayerInRangeOfPoint(x,15.0,1025.0671,-1023.7895,32.1016))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,719.9537,-457.2771,16.3359))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,487.4134,-1740.1738,11.1370))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,2065.5911,-1831.4495,13.5469))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,1974.3198,2162.7249,11.0703))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,-100.1086,1117.3312,19.7417))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- GetVehicleHealth(carid, health);
- if(health < 950.0)
- {
- if(GetPlayerState(x) == 2)
- {
- pnsmoney[x] = GetPlayerMoney(x);
- SetTimerEx("AfterSpray", 3000, false, "i", x);
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,BizzInfo[51][bEntranceX],BizzInfo[51][bEntranceY],BizzInfo[51][bEntranceZ]))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- if(EnterInModShop[x] > 0)
- {
- GivePlayerCash(x, -BizzInfo[51][bEntranceCost]);
- BizzInfo[51][bTill] += BizzInfo[51][bEntranceCost];
- new str[128];
- mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='51'",BizzInfo[51][bTill]);
- mysql_tquery(SQL,str,"","");
- format(string,sizeof(string),"~r~-%d$", BizzInfo[51][bEntranceCost]);
- GameTextForPlayer(x, string, 5000, 1);
- EnterInModShop[x] = 0;
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,BizzInfo[38][bEntranceX],BizzInfo[38][bEntranceY],BizzInfo[38][bEntranceZ]))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- if(EnterInModShop[x] > 0)
- {
- GivePlayerCash(x, -BizzInfo[38][bEntranceCost]);
- BizzInfo[38][bTill] += BizzInfo[38][bEntranceCost];
- new str[128];
- mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='38'",BizzInfo[38][bTill]);
- mysql_tquery(SQL,str,"","");
- format(string,sizeof(string),"~r~-%d$", BizzInfo[38][bEntranceCost]);
- GameTextForPlayer(x, string, 5000, 1);
- EnterInModShop[x] = 0;
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(x,15.0,BizzInfo[39][bEntranceX],BizzInfo[39][bEntranceY],BizzInfo[39][bEntranceZ]))
- {
- if(PlayerInfo[x][pWantedLevel] == 0)
- {
- DisableRemoteVehicleCollisions(x, 1);
- }
- else
- {
- DisableRemoteVehicleCollisions(x, 0);
- }
- if(EnterInModShop[x] > 0)
- {
- GivePlayerCash(x, -BizzInfo[39][bEntranceCost]);
- BizzInfo[39][bTill] += BizzInfo[39][bEntranceCost];
- new str[128];
- mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='39'",BizzInfo[39][bTill]);
- mysql_tquery(SQL,str,"","");
- format(string,sizeof(string),"~r~-%d$", BizzInfo[39][bEntranceCost]);
- GameTextForPlayer(x, string, 5000, 1);
- EnterInModShop[x] = 0;
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement