Jump to content

cIpiCaO

Membru
  • Posts

    22
  • Joined

  • Last visited

    Never

cIpiCaO's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Acum am alta problema. Nu am vazut asa ceva in viata mea. Intru pe server(hostat), dau rr, si nu mai pot intra imi apare iar aia cu retrying. Alt prieten, a reusit sa intre. Dau iar rr, el nu mai poate sa intre, dar pot eu. WTF?
  2. http://imageshack.us/photo/my-images/208/samp001ndr.png/ Serverul este deschis, imi apare si in lista de fav. Are candva toane de merge 2-3 minute, apoi imi apare ca in poza, dar el este deschis!
  3. Vezi daca e scrisa comanda bine
  4. am reusit sa fac PlayerToPoint. Dar restul . . .
  5. am bagat alea. tot aia imi da
  6. Nu sunt foarte avansat in scripting, si nu ma descurc foarte bine. Am inteles ca erorile acestea apar datorita unei paranteze. . .
  7. [pawn] new name[MAX_PLAYER_NAME]; new wstring[MAX_PLAYER_NAME]; GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "%s", name); strmid(wstring, string, 0, strlen(string), 255); if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 ) { new value = money / 100; value = value * 10; SafeGivePlayerMoney(i, value); SBizzInfo[bizid][sbTill] -= value; } } } return 1; } public PreparePaintball() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing != 0) { SendClientMessage(i, COLOR_YELLOW, "Paintball Match will start in 20 seconds."); } } } SetTimer("StartPaintball", 20000, 0); return 1; } public StartPaintball() { PaintballRound = 1; StartingPaintballRound = 0; PaintballWinner = 999; PaintballWinnerKills = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing != 0) { SafeResetPlayerWeapons(i); SafeGivePlayerWeapon(i, 29, 999); TogglePlayerControllable(i, 1); SendClientMessage(i, COLOR_YELLOW, "Paintball Match started, 4 minutes left."); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); } } } SetTimer("PaintballEnded", 240000, 0); return 1; } public PaintballEnded() { new string[256]; new name[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing != 0) { if(IsPlayerConnected(PaintballWinner)) { GetPlayerName(PaintballWinner, name, sizeof(name)); format(string,sizeof(string), "** %s won the Paintball Match with %d kills **",name,PaintballWinnerKills); SendClientMessage(i, COLOR_WHITE, string); } SafeResetPlayerWeapons(i); PlayerPaintballing = 0; SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]); } } } AnnouncedPaintballRound = 0; PaintballRound = 0; return 1; } public PrepareKarting() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerKarting != 0 && PlayerInKart != 0) { CP = 9; SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0); SendClientMessage(i, COLOR_YELLOW, "Kart Race will start in 20 seconds, go to the starting line."); } } } SetTimer("StartKarting", 20000, 0); return 1; } public ChangeWeather() { weather2 = random(20); //DefaultWeather = weather2; if(weather2 == 1) { SetWeather(1); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie Soare Acum"); //SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie Soare Acum, Perfect sa �noat!!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny Now, Perfect to swim!"); } else if(weather2 == 2) { SetWeather(2); SendClientMessageToAll(COLOR_SEA,"[Meteo]: A cum va fi un val de caldura Acum"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be a Heatwave Now, Perfect to stay at home!"); //SendClientMessageToAll(COLOR_SEA,"[Meteo]: A cum va fi un val de caldura Acum, Perfect sa stati la domiciliu!"); } else if(weather2 == 3) { SetWeather(3); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie Soare Acum"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny Now, Perfect to Drive!"); //SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie Soare Acum, Perfect pentru Drive!"); } else if(weather2 == 4) { SetWeather(4); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie ceata cu soare Acum"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Foggy with Heat, land at your nearest airport!"); //SendClientMessageToAll(COLOR_SEA,"[Meteo]: It's Gonna be Foggy with Heat, land at your nearest airport!"); } else if(weather2 == 5) { SetWeather(5); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi un val de caldura Acum"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be a Heat Wave Now, do not use much clothes!"); } else if(weather2 == 6) { SetWeather(6); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi un val de caldura Acum"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be a Heat Wave Now, do not use much clothes!"); } else if(weather2 == 7) { SetWeather(7); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va ploua acuma, Nu uita De umbrela!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Cloudy Now, watch out for rain!"); } else if(weather2 == 8) { SetWeather(8); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va ploua acuma, Nu uita De umbrela!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna Heavly Rain, You better get to the Evac Center!"); } else if(weather2 == 9) { SetWeather(9); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi ceata Acuma, Aterizeaza pe cel mai apropiat aeroport"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Foggy Now, land at your nearest airport!"); } else if(weather2 == 10) { SetWeather(10); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi soare Acum, Dar ferestete De Ploie"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny Now, But watch out for rain!"); } else if(weather2 == 11) { SetWeather(11); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi soare Acum, Perfect pentru o plimbare cu bicicleta!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny Now, Perfect to ride a bicycle!"); } else if(weather2 == 12) { SetWeather(12); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi o zi cu sanse de ploie Acum, Nu uita de umbrela!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Cloudy Now, do not leave without your umbrella!"); } else if(weather2 == 13) { SetWeather(13); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi soare Acum, perfect pentru zburat!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny now, perfect to fly!"); } else if(weather2 == 14) { SetWeather(14); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi soare Acum, Perfect pentru plimbare!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny Now, Perfect to walk!"); } else if(weather2 == 15) { SetWeather(15); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi o zi cu sanse de ploie Acum, Ferestete!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Cloudy now, Watch out!"); } else if(weather2 == 16) { SetWeather(16); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie ploaie Acum, sa ai umbrela ta!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Rain now, get your umbrella!"); } else if(weather2 == 17) { SetWeather(17); SendClientMessageToAll(COLOR_SEA,"[Meteo]: Va fi un val de caldura Acum, nuti lua multe haine"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny with some heat, do not take many clothes!"); } else if(weather2 == 18) { SetWeather(18); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie soare Acum, nuti lua multe haine"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Sunny with some heat, do not take many clothes!"); } else if(weather2 == 19) { SetWeather(19); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie furtuna Acum, Nu condu sau zbura !"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be a Sand Storm now, Do not drive or fly!"); } else if(weather2 == 20) { SetWeather(20); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie cerul cu nori, fi atent si iati umbrela cu tine!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Heavly Cloudy, Be careful and take your umbrella!"); } else if(weather2 == 21) { SetWeather(21); SendClientMessageToAll(COLOR_SEA,"[Meteo]: O sa fie vreme rea, adapostiti-va!"); //SendClientMessageToAll(COLOR_SEA,"[Weather News]: It's Gonna be Heavly Cloudy, Be careful and take your umbrella!"); } return 1; } public IO1(playerid) { ClearChatbox(playerid, 5); PlayerInfo[playerid][pMuted] = 1; SendClientMessage(playerid, COLOR_LIGHTRED,"INTRODUCERE"); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_YELLOW,"Vei incepe prima oara sa dai sala adica vei raspunde la niste intrebari."); SendClientMessage(playerid, COLOR_YELLOW,"Acuma nu o sa iti pun intrebari din Viata Reala,este doar un Joc sa nu exageram."); SendClientMessage(playerid, COLOR_YELLOW,"Dar te rog sa fi foarte atent ca dupa aceea nu mai ai de unde sa afli."); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); } public IO2(playerid) { ClearChatbox(playerid, 5); SendClientMessage(playerid, COLOR_LIGHTRED,"Ce trebuie sa faci?"); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_YELLOW,"Robot-ul iti va pune niste intrebari,in care tu vei trebui sa scrii care este varianta corecta."); SendClientMessage(playerid, COLOR_YELLOW,"De exemplu: Robotul zice 'Pe ce banda ai voie sa circuli'"); SendClientMessage(playerid, COLOR_YELLOW,"Ti se vor da variantele ,iar tu vei scrie doar A,B,C,sau D varianta corecta."); SendClientMessage(playerid, COLOR_YELLOW,"Mai exact este un test grila,fiecare intrebare avand doar un raspuns."); SendClientMessage(playerid, COLOR_YELLOW,"Ai grija ca sunt intrebari si nu te grabi deoarece poti sa cazi in capcana."); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); } public IO6(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED,"Reguli de circulatie!"); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_YELLOW,"Regulile de circulatie sunt disponibile pe forumul nostru. "); SendClientMessage(playerid, COLOR_YELLOW,"Ar fi bine sa le citesti inainte sa incepi sa raspunzi la intrebari. "); SendClientMessage(playerid, COLOR_YELLOW,"Forumul Serverului este wWw.CAgaming.Ro"); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_LIGHTRED," "); SetTimerEx("DKT1", 10000, 0, "d", playerid); } public DKT1(playerid) { ClearChatbox(playerid, 5); PlayerInfo[playerid][pMuted] = 0; SendClientMessage(playerid, COLOR_LIGHTRED, "Ultima parte a examenului."); SendClientMessage(playerid, COLOR_LIGHTRED," "); SendClientMessage(playerid, COLOR_YELLOW, "Speram ca ai fost atent, pentru ca este timpul sa raspunzi la c�teva �ntrebari."); SetTimerEx("DKT2", 5000, 0, "d", playerid); } public DKT2(playerid) { DKT[playerid] = 1; ClearChatbox(playerid, 6); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~[intrebarea nr. 1]~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ce faci cand ramai fara benzina sau masina iti este foarte avariata."); SendClientMessage(playerid, COLOR_YELLOW, "A: Iti bagi **** in ea de masina!"); SendClientMessage(playerid, COLOR_YELLOW, "B: Chemi un mecanic!"); SendClientMessage(playerid, COLOR_YELLOW, "C: Te pui in mijlocul drumului si astepti sa vina cineva!"); SendClientMessage(playerid, COLOR_YELLOW, "D: Scriu /quit!"); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); SendClientMessage(playerid, COLOR_LIGHTRED, " "); } public DKT3(playerid) { DKT[playerid] = 2; ClearChatbox(playerid, 5); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~[intrebarea nr. 2]~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Pentru ce infractiune ti se poate suspenda permisul de conducere?"); SendClientMessage(playerid, COLOR_YELLOW, "A: Transport ilegal de persoane!"); SendClientMessage(playerid, COLOR_YELLOW, "B: Furt de masina!"); SendClientMessage(playerid, COLOR_YELLOW, "C: Vorbitul la telefon in timp ce conduci!"); SendClientMessage(playerid, COLOR_YELLOW, "D: Drive By!"); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); } public DKT4(playerid) { DKT[playerid] = 3; ClearChatbox(playerid, 5); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~[intrebarea nr. 3]~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ce faci cand un politist iti cere masina pentru o urgenta?"); SendClientMessage(playerid, COLOR_YELLOW, "A: Il calc si plec mai departe."); SendClientMessage(playerid, COLOR_YELLOW, "B: Il iau ca pasager si il leg."); SendClientMessage(playerid, COLOR_YELLOW, "C: Ii zic sa ma lase in pace , si-l bag in ***** masii."); SendClientMessage(playerid, COLOR_YELLOW, "D: I-o imprumut."); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); } public DKT5(playerid) { DKT[playerid] = 4; ClearChatbox(playerid, 5); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~[intrebarea nr. 4]~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ce pot sa patesc daca particip intr-o cursa ilegala ?"); SendClientMessage(playerid, COLOR_YELLOW, "A: Pot intra la inchisoare!"); SendClientMessage(playerid, COLOR_YELLOW, "B: Imi pot distruge masina si nu pot plati reparatile!"); SendClientMessage(playerid, COLOR_YELLOW, "C: Nimic,sunt regele soselelor!"); SendClientMessage(playerid, COLOR_YELLOW, "D: Pot sa castig si sa primesc marele premiu!"); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); } public DKT6(playerid) { DKT[playerid] = 5; ClearChatbox(playerid, 5); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~[intrebarea nr. 5]~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ce trebuie sa faci cand un politist striga din masina 'Trage pe dreapta!?"); SendClientMessage(playerid, COLOR_YELLOW, "A: Ma dau jos din masina , scot Minigun si-l nenorocesc!"); SendClientMessage(playerid, COLOR_YELLOW, "B: Sar din masina si o iau cu 'Pejou'!"); SendClientMessage(playerid, COLOR_YELLOW, "C: Ii arat degetul din mijloc!"); SendClientMessage(playerid, COLOR_YELLOW, "D: Trag frumos pe dreapta!"); SendClientMessage(playerid, COLOR_LIGHTRED, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|"); SendClientMessage(playerid, COLOR_LIGHTRED, " "); } public StartKarting() { KartingRound = 1; StartingKartRound = 0; EndingKartRound = 0; FirstKartWinner = 999; SecondKartWinner = 999; ThirdKartWinner = 999; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerKarting != 0 && PlayerInKart != 0) { CP = 10; SendClientMessage(i, COLOR_YELLOW, "Green light, go go go !"); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0); } } } SetTimer("KartingEnded", 240000, 0); return 1; } public KartingEnded() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerKarting != 0 && PlayerInKart != 0) { CP = 0; DisablePlayerCheckpoint(i); } } } AnnouncedKartRound = 0; KartingRound = 0; return 1; } public DollahScoreUpdate() { new LevScore; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { LevScore = PlayerInfo[pLevel]; SetPlayerScore(i, LevScore); } } return 1; } LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp) { gPlayerUsingLoopingAnim[playerid] = 1; ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp); } public Encrypt(string[]) { for(new x=0; x < strlen(string); x++) { string[x] += (3^x) * (x % 15); if(string[x] > (0xff)) { string[x] -= 256; } } return 1; } stock CreateRb(Float:x,Float:y,Float:z,Float:Angle) { for(new i = 0; i < sizeof(RbInfo); i++) { if(RbInfo[rbCreated] == 0) { RbInfo[rbCreated]=1; RbInfo[sX]=x; RbInfo[sY]=y; RbInfo[sZ]=z-0.7; RbInfo[sObject] = CreateObject(978, x, y, z-0.9, 0, 0, Angle-90); return 1; } } return 0; } stock DeleteAllRb() { for(new i = 0; i < sizeof(RbInfo); i++) { if(RbInfo[rbCreated] == 1) { RbInfo[rbCreated]=0; RbInfo[sX]=0.0; RbInfo[sY]=0.0; RbInfo[sZ]=0.0; DestroyObject(RbInfo[sObject]); } } return 0; } stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle) { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(SpikeInfo[sCreated] == 0) { SpikeInfo[sCreated]=1; SpikeInfo[sX]=x; SpikeInfo[sY]=y; SpikeInfo[sZ]=z-0.7; SpikeInfo[sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90); return 1; } } return 0; } stock DeleteAllStrip() { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(SpikeInfo[sCreated] == 1) { SpikeInfo[sCreated]=0; SpikeInfo[sX]=0.0; SpikeInfo[sY]=0.0; SpikeInfo[sZ]=0.0; DestroyObject(SpikeInfo[sObject]); } } return 0; } stock DeleteClosestStrip(playerid) { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[sX], SpikeInfo[sY], SpikeInfo[sZ])) { if(SpikeInfo[sCreated] == 1) { SpikeInfo[sCreated]=0; SpikeInfo[sX]=0.0; SpikeInfo[sY]=0.0; SpikeInfo[sZ]=0.0; DestroyObject(SpikeInfo[sObject]); return 1; } } } return 0; } encode_tires(tires1, tires2, tires3, tires4) { return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3); } stock GetPlayerNameEx(playerid) { new string[24]; GetPlayerName(playerid,string,24); new str[24]; strmid(str,string,0,strlen(string),24); for(new i = 0; i < MAX_PLAYER_NAME; i++) { if (str == '_') str = ' '; } return str; } stock Float:GetPointDistanceToPointsExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2) { new Float:x, Float:y, Float:z; x = x1-x2; y = y1-y2; z = z1-z2; return floatsqroot(x*x+y*y+z*z); } stock right(source[], len) { new retval[MAX_STRING], srclen; srclen = strlen(source); strmid(retval, source, srclen - len, srclen, MAX_STRING); return retval; } stock sscanf(string[], format[], {Float,_}:...) { new formatPos = 0, stringPos = 0, paramPos = 2, paramCount = numargs(); while (paramPos < paramCount && string[stringPos]) { switch (format[formatPos++]) { case '\0': { return 0; } case 'i', 'd': { new neg = 1, num = 0, ch = string[stringPos]; if (ch == '-') { neg = -1; ch = string[++stringPos]; } do { stringPos++; if (ch >= '0' && ch <= '9') { num = (num * 10) + (ch - '0'); } else { return 1; } } while ((ch = string[stringPos]) && ch != ' '); setarg(paramPos, 0, num * neg); } case 'h', 'x': { new ch, num = 0; while ((ch = string[stringPos++])) { switch (ch) { case 'x', 'X': { num = 0; continue; } case '0' .. '9': { num = (num << 4) | (ch - '0'); } case 'a' .. 'f': { num = (num << 4) | (ch - ('a' - 10)); } case 'A' .. 'F': { num = (num << 4) | (ch - ('A' - 10)); } case ' ': { break; } default: { return 1; } } } setarg(paramPos, 0, num); } case 'c': { setarg(paramPos, 0, string[stringPos++]); } case 'f': { new tmp[25]; strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2); setarg(paramPos, 0, _:floatstr(tmp)); } case 's', 'z': { new i = 0, ch; if (format[formatPos]) { while ((ch = string[stringPos++]) && ch != ' ') { setarg(paramPos, i++, ch); } if (!i) return 1; } else { while ((ch = string[stringPos++])) { setarg(paramPos, i++, ch); } } stringPos--; setarg(paramPos, i, '\0'); } default: { continue; } } while (string[stringPos] && string[stringPos] != ' ') { stringPos++; } while (string[stringPos] == ' ') { stringPos++; } paramPos++; } while (format[formatPos] == 'z') formatPos++; return format[formatPos]; } public Spectator() { new string[256]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(KickPlayer==1) { Kick(i); } else if(KickPlayer==2) { Ban(i); } //if(GetPlayerPing(i) >= 500 && PlayerInfo[pStaff] < 1) { Kick(i); } if(Spectate < 253 && Spectate != 255) { SetPlayerColor(i,COLOR_SPEC); TogglePlayerControllable(i, 0); new targetid = Spectate; if(IsPlayerConnected(targetid)) { TogglePlayerSpectating(i, 1); if(PlayerInfo[pStaff] >= 1) { new Float:health; new name[MAX_PLAYER_NAME]; GetPlayerName(targetid, name, sizeof(name)); GetPlayerHealth(targetid, health); format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~health:%.1f",name,targetid,health); GameTextForPlayer(i, string, 2500, 3); } if(IsPlayerInAnyVehicle(targetid)) { new carid = GetPlayerVehicleID(targetid); PlayerSpectateVehicle(i, carid); } else { PlayerSpectatePlayer(i, targetid); } if(GetPlayerInterior(targetid) == 0) { SetPlayerInterior(i,0); } else if(GetPlayerInterior(targetid) > 0) { SetPlayerInterior(i,GetPlayerInterior(targetid)); } }//Targetid connected } if(Spectate == 253) { TogglePlayerControllable(i, 1); TogglePlayerSpectating(i, 0); SetPlayerInterior(i,Unspec[sPint]); PlayerInfo[pInt] = Unspec[sPint]; PlayerInfo[pLocal] = Unspec[sLocal]; Unspec[sLocal] = 255; SetSpawnInfo(i, PlayerInfo[pTeam], PlayerInfo[pChar], Unspec[sPx], Unspec[sPy], Unspec[sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1); gTeam = PlayerInfo[pTeam]; SetPlayerToTeamColor(i); MedicBill = 0; if(PlayerInfo[pDonateRank] > 0) { SetSpawnInfo(i, PlayerInfo[pTeam], PlayerInfo[pChar], Unspec[Coords][0], Unspec[Coords][1], Unspec[Coords][2], 10.0, -1, -1, -1, -1, -1, -1); SpawnPlayer(i); SetCameraBehindPlayer(i); } else { SpawnPlayer(i); } Spectate = 255; } if(Spectate == 254) { TogglePlayerControllable(i, 1); SetPlayerInterior(i,Unspec[sPint]); PlayerInfo[pInt] = Unspec[sPint]; PlayerInfo[pLocal] = Unspec[sLocal]; SetPlayerPos(i, Unspec[sPx], Unspec[sPy], Unspec[sPz]); Spectate = 255; } if(Spectate == 256) { SetPlayerToTeamColor(i); Spectate = 255; } if(Spectate == 257) { Spectate = 254; } } } } //------------------------------------------------------------------------------------------------------ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4) { if(PlayerInfo[playerid][pSala] < 1) { if (IsASala(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pSala] < 1) {} else { SendClientMessage(playerid, COLOR_GREY, " Nu ai dat pentru examenul de condus !"); } } } if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); } } if(vehicleid == cop1 || vehicleid == cop2 || vehicleid == cop3 || vehicleid == cop4 || vehicleid == cop5 || vehicleid == cop6 || vehicleid == cop7 || vehicleid == cop8 || vehicleid == cop9 || vehicleid == cop10 || vehicleid == cop11 || vehicleid == cop12 || vehicleid == cop13 || vehicleid == cop14 || vehicleid == cop15 || vehicleid == cop16 || vehicleid == cop17 || vehicleid == cop18 || vehicleid == cop19 || vehicleid == cop20 || vehicleid == cop21 || vehicleid == cop22) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { } else{ SendClientMessage(playerid,COLOR_RED," Nu esti membru Police Departament !"); RemovePlayerFromVehicle(playerid);} } if(vehicleid == fbi1 || vehicleid == fbi2 || vehicleid == fbi3 || vehicleid == fbi4 || vehicleid == fbi5 || vehicleid == fbi6 || vehicleid == fbi7 || vehicleid == fbi8 || vehicleid == fbi9) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru F.B.I. !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == ng1 || vehicleid == ng2 || vehicleid == ng3 || vehicleid == ng4 || vehicleid == ng5 || vehicleid == ng6 || vehicleid == ng7 || vehicleid == ng8 || vehicleid == ng9 || vehicleid == ng10) { if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru National Guard !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == med1 || vehicleid == med2 || vehicleid == med3 || vehicleid == med4 || vehicleid == med5) { if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Medic Departament !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == gtt1 || vehicleid == gtt2 || vehicleid == gtt3 || vehicleid == gtt4 || vehicleid == gtt5 || vehicleid == gtt6 || vehicleid == gtt7) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru G.T.T. Racing !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == tow1 || vehicleid == tow2 || vehicleid == tow3 || vehicleid == tow4 || vehicleid == tow5) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Tow Car Company !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == mayor1 || vehicleid == mayor2 || vehicleid == mayor3 || vehicleid == mayor4 || vehicleid == mayor5 || vehicleid == mayor6) { if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { } else { SendClientMessage(playerid,COLOR_RED," Nu faci parte din Primarie !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == hitman1 || vehicleid == hitman2 || vehicleid == hitman3 || vehicleid == hitman4 || vehicleid == hitman5 || vehicleid == hitman6 || vehicleid == hitman7 || vehicleid == hitman8 || vehicleid == hitman9) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Hitman Agency !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == news1 || vehicleid == news2 || vehicleid == news3 || vehicleid == news4 || vehicleid == news5) { if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti Reporter !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == taxi1 || vehicleid == taxi2 || vehicleid == taxi3 || vehicleid == taxi4 || vehicleid == taxi5 || vehicleid == taxi6 || vehicleid == taxi7 || vehicleid == taxi8 || vehicleid == taxi9 || vehicleid == taxi10 || vehicleid == taxi11 || vehicleid == taxi12) { if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti Taximetrist !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == cobras1 || vehicleid == cobras2 || vehicleid == cobras3 || vehicleid == cobras4 || vehicleid == cobras5 || vehicleid == cobras6) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 9) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Cobras M&G !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == ebb1 || vehicleid == ebb2 || vehicleid == ebb3 || vehicleid == ebb4 || vehicleid == ebb5 || vehicleid == ebb6 || vehicleid == ebb7 || vehicleid == ebb8 || vehicleid == ebb9 || vehicleid == ebb10) { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru East Beach Bloods !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == ykz1 || vehicleid == ykz2 || vehicleid == ykz3 || vehicleid == ykz4 || vehicleid == ykz5 || vehicleid == ykz6 || vehicleid == ykz7 || vehicleid == ykz8 || vehicleid == ykz9 || vehicleid == ykz10) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru The Yakuza !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == rus1 || vehicleid == rus2 || vehicleid == rus3 || vehicleid == rus4 || vehicleid == rus5 || vehicleid == rus6) { if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Russian Bratva !"); RemovePlayerFromVehicle(playerid); } } if(vehicleid == crl1 || vehicleid == crl2 || vehicleid == crl3 || vehicleid == crl4 || vehicleid == crl5) { if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { } else { SendClientMessage(playerid,COLOR_RED," Nu esti membru Corleone Famiglia !"); RemovePlayerFromVehicle(playerid); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { } } if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1) { if(PlayerInfo[playerid][pStaff] >= 1340) { } new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); return 1; } } return 1; } public IsAnInstructor(playerid) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==19) { return 1; } if(leader==19) { return 1; } } return 0; } public IsAMember(playerid) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==5 || member==6 || member==8 || member==14 || member==15 || member==16) { return 1; } if(leader==5 || leader==6 || leader==8 || leader==14 || leader==15 || leader==16) { return 1; } } return 0; } public IsACop(playerid) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1 || member==2 || member==3) { return 1; } else if(leader==1 || leader==2 || leader==3) { return 1; } } return 0; } public IsAPDMember(playerid) { if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1) { return 1; } else if(leader==1) { return 1; } } return 0; } public IsAnOwnableCar(vehicleid) { if(vehicleid >= PersonalCarID && vehicleid <= 2000) { return 1; } return 0; } public IsAtDealership(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007)) { return 1; } } return 0; } public IsAtADealership(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(50,playerid,2587.796630,2274.903076,11.062500)) { return 1; } } return 0; } public IsAtCarrental(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063)) { return 1; } } return 0; } public IsAtClothShop(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047)) {//Binco & Suburban return 1; } else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047)) {//Zip & Victim return 1; } } return 0; } public IsAtGasStation(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906) || PlayerToPoint(6.0,playerid,1606.961060,-1625.306641,14.217185)) {//LS return 1; } else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391) || PlayerToPoint(6.0,playerid,1606.937378,-1612.712646,14.217185)) {//LS return 1; } else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175)) {//SF return 1; } else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484)) {//Between LS and SF return 1; } else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968)) {//LV return 1; } else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165)) {//LV return 1; } else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625)) {//LV return 1; } else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))[/pawn]
  8. Am auzit ca imi lipseste o acolada, dar pur si simplu, nu imi pot da seama unde. Am folosit si bracket finder, dar nu prea inteleg mare lucru. Ma poate ajuta cineva? [pawn]error 004: function "SafeGivePlayerMoney" is not implemented error 004: function "SafeGivePlayerMoney" is not implemented error 004: function "SafeResetPlayerWeapons" is not implemented error 004: function "SafeGivePlayerWeapon" is not implemented error 004: function "SafeResetPlayerWeapons" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "ClearChatbox" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented [/pawn]
  9. Nu prea imi dau seama ce si cum sa fac!
  10. C:\Users\ \Desktop\pawno\include\Y_INI.inc(168) : fatal error 100: cannot read from file: "YSI\y_inline" unde pot gasi acest include? sau ce este de facut?
  11. Salut. Am si eu o problema la buycar. Ma duc sa cumpar masinile, iar dupa ce dau rr, masinile dispar. Dc?
  12. UP! cineva? ma poate ajuta?
  13. Incearca asa: AddStaticVehicle(522,73.0019,2365.6064,16.1202,136.3843,1,1,60);
  14. am in cfg cars.ini sau cv de genul. nu este bun?
  15. Salut. Am si eu o problema. Ma duc la buycar, cumpar masini, iar daca dau restart la server, masinile dispar. Ce pot face?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.