Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OtherTimer()
- {
- new string[256];
- foreach (new i : Player)
- {
- if(SafeTime[i] > 0)
- {
- SafeTime[i]--;
- }
- if(SafeTime[i] == 1)
- {
- if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
- {
- new loginname[164];
- new loginstring[MAX_STRING];
- GetPlayerName(i,loginname,164);
- format(loginstring,sizeof(loginstring),"{FFFFFF}Bun venit, {4196FF}%s{FFFFFF}.\n{FFFFFF}Introdu parola in casuta de mai jos pentru a te autentifica:\n{FFFFFF}Ultima autentificare: {4196FF}%s{FFFFFF}.",loginname,PlayerInfo[i][pUltLog]);
- ShowPlayerDialog(i,12346,DIALOG_STYLE_PASSWORD," {FFFFFF}Conectare",loginstring,"Intra","Iesi");
- }
- }
- if(PlayerInfo[i][pLocal] != 255 && PlayerInfo[i][pInt] != 0)
- {
- new house = PlayerInfo[i][pLocal];
- new Float:oldposx, Float:oldposy, Float:oldposz;
- GetPlayerPos(i, oldposx, oldposy, oldposz);
- if(oldposz != 0.0)
- {
- if(oldposz < 600.0)
- {
- if(house == 241)//City Hall
- {
- SetPlayerInterior(i,0);
- SetPlayerPos(i,1481.0463,-1770.3093,18.7958);
- PlayerInfo[i][pInt] = 0;
- PlayerInfo[i][pLocal] = 255;
- }
- if(house == 242)
- {
- SetPlayerInterior(i,0);
- SetPlayerPos(i,1073.0619,-344.5148,73.9922);
- PlayerInfo[i][pInt] = 0;
- PlayerInfo[i][pLocal] = 255;
- }
- if(house >= 99 && house != 10000)
- {
- SetPlayerPos(i, BizzInfo[house-99][bEntranceX], BizzInfo[house-99][bEntranceY],BizzInfo[house-99][bEntranceZ]); // Warp the player
- PlayerInfo[i][pLocal] = 255;
- SetPlayerInterior(i,0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerVirtualWorld(i, 0);
- }
- }
- }
- }
- new Float:Vitezad = GetVehicleSpeed_P(i);
- if(RadarON[i] == 1 && Vitezad > 5)
- {
- format(string, sizeof(string), "** Politistul %s a renuntat la radar **", GetPlayerNameEx(i));
- SendRadioMessage(1, COLOR_DBLUE, string);
- RadarON[i] = 0;
- }
- if(CellTime[i] > 0)
- {
- if (CellTime[i] == cchargetime)
- {
- CellTime[i] = 1;
- if(Mobile[Mobile[i]] == i)
- {
- CallCost[i] = CallCost[i]+SBizzInfo[1][sbEntranceCost]/2;
- }
- }
- CellTime[i] = CellTime[i] +1;
- if (Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
- {
- if(IsPlayerConnected(Mobile[i]))
- {
- new called[MAX_PLAYER_NAME];
- GetPlayerName(Mobile[i], called, sizeof(called));
- format(string, sizeof(string), "* Telefonul lui %s suna.", called);
- RingTone[Mobile[i]] = 10;
- ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- }
- if(CellTime[i] == 0 && CallCost[i] > 0)
- {
- format(string, sizeof(string), "~w~Apelul a costat~n~~r~$%d",CallCost[i]);
- GivePlayerCash(i, -CallCost[i]);
- SBizzInfo[1][sbTill] += CallCost[i];
- ExtortionSBiz(1, CallCost[i]);
- GameTextForPlayer(i, string, 5000, 1);
- CallCost[i] = 0;
- }
- if(TransportTime[i] > 0)
- {//Taxi driver and passenger only
- if(TransportTime[i] >= 16)
- {
- TransportTime[i] = 1;
- if(TransportDriver[i] < 999)
- {
- if(IsPlayerConnected(TransportDriver[i]))
- {
- TransportCost[i] += TransportValue[TransportDriver[i]];
- TransportCost[TransportDriver[i]] = TransportCost[i];
- }
- }
- }
- TransportTime[i] += 1;
- format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
- GameTextForPlayer(i, string, 15000, 6);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement