Jump to content

Jimmi

Membru
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Jimmi

  1. La fel C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28793) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28793) : error 017: undefined symbol "cmdtext" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28794) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28803) : error 017: undefined symbol "idx" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28812) : error 017: undefined symbol "giveplayer" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28812) : error 035: argument type mismatch (argument 2) C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28813) : error 017: undefined symbol "sendername" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28813) : error 017: undefined symbol "sendername" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28813) : error 029: invalid expression, assumed zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28813) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10 Errors. CMD:setskin(playerid, params[]) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /setskin [playerid/numejucator] [skin id]"); return 1; } new para1; new tmp[128]; new level; para1 = ReturnUser(tmp); tmp = strtok(params, idx); level = strval(tmp); if(level > 311 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Skin ID gresit!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(para1)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pModel] = level; Update(para1, pModelx); format(string, sizeof(string), "Skin-ul tau a fost setat pe %s de catre %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "I-ai setat skin-ul lui %s pe %d.", para1,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SetPlayerSkin(para1, PlayerInfo[para1][pModel]); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, "** Nu ai rangul administrativ necesar!"); } } return 1; }
  2. Lasa ca sti tu........Ai copiat o comanda dintr-un gm si esti mare scripter
  3. Nu vad rolul pentru care ai postat tu aici.
  4. Puteam sa copiez si eu comanda din alt gm dar motivul este ca da si mai multe erori.
  5. Problema intalnita (descriere):Am incercat sa trec comanda /setskin pe cmd si imi da erori.Am modificat doar oleaca dar nu cred ca am facut bine comanda de aia da eroare: Ero(area / rile) / warning-(ul / urile): C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28793) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28793) : error 017: undefined symbol "cmdtext" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28794) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28801) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28802) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28802) : error 017: undefined symbol "cmdtext" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28803) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28811) : error 017: undefined symbol "giveplayer" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28811) : error 017: undefined symbol "giveplayer" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28811) : error 029: invalid expression, assumed zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28811) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 11 Errors. Liniile de cod / sursa / script-ul(obligatoriu):CMD:setskin(playerid, params[]) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /setskin [playerid/numejucator] [skin id]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 311 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Skin ID gresit!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pModel] = level; Update(para1, pModelx); format(string, sizeof(string), "Skin-ul tau a fost setat pe %s de catre %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "I-ai setat skin-ul lui %s pe %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SetPlayerSkin(para1, PlayerInfo[para1][pModel]); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, "** Nu ai rangul administrativ necesar!"); } } return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da
  6. Doar cele care nu necesita integrarea in gamemode
  7. In functie de sistemul de operare pe care va rula server-ul SA:MP, inlocuiti urmatoarele fisiere/dosare ale server-ului dvs. cu cele din pachetul descarcat: Windows:announce.exesamp-npc.exesamp-server.exedosarul pawno\includeVerificati daca exista versiuni noi pentru librariile/plugin-urile folosite de server, iar daca exista, actualizati-le (ex: YSI);Recompilati gamemode-ul si filterscript-urile.
  8. Pe Linux sau pe Windows?
  9. Tot in albul ala era si sbizz.Ma rog http://imgur.com/aB5rF6E,vAidOEy#0
  10. Am aduagat ce era inainte: new SBizzInfo[100][sbInfo]; new BizzInfo[43][bInfo];
  11. Desigur. http://imgur.com/aB5rF6E,vAidOEy#1
  12. Da [19:01:34] 18 bizz-uri create. (Daca apare 0 = Nu are conectiunea la baza de date) [19:01:34] 11 sbizz-uri create. (Daca apare 0 = Nu are conectiunea la baza de date Incarca sbiz-ul 7 si 8 dar nu incarca 6 si 9.La fel si 10 il incerca corect in joc
  13. sbiz-urile sunt unele biz-urile altele.Am zis ca poate de aia nu incerca cele 2 sbiz-uri.tc
  14. Problema intalnita (descriere):Am modificat la enum numarul biz-urilor am urcat gm pe host si nu a mai pornit. Ero(area / rile) / warning-(ul / urile): [19:39:20] [debug] Run time error 4: "Array index out of bounds" [19:39:20] [debug] Accessing element at index 18 past array upper bound 17 [19:39:20] [debug] AMX backtrace: [19:39:20] [debug] #0 001f74bc in public SyncTime () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:26674 [19:39:20] [debug] #1 001f48e8 in public SyncUp () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:26570 [19:39:20] [debug] #2 00136f5c in public zcmd_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:20869 [19:39:20] [debug] #3 native CallLocalFunction () from samp03svr [19:39:20] [debug] #4 000243c8 in public SSCANF_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\zcmd.inc:68 [19:39:20] [debug] #5 0001da2c in public Hook_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\sscanf2.inc:174 [19:39:20] [debug] #6 native CallLocalFunction () from samp03svr [19:39:20] [debug] #7 0001031c in public Itter_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\beaZone.inc:40 [19:39:20] [debug] #8 native CallLocalFunction () from samp03svr [19:39:20] [debug] #9 0000257c in public ScriptInit_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\foreach.inc:774 [19:39:20] [debug] #10 native CallLocalFunction () from samp03svr [19:39:20] [debug] #11 00000f14 in public OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include \YSI\internal\..\y_scriptinit.inc:164 Liniile de cod / sursa / script-ul(obligatoriu):public SyncTime() { new string[64]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; if ((tmphour > ghour) || (tmphour == 0 && ghour == 23) || (tmphour > bankhour) || (tmphour == 0 && bankhour == 23)) { format(string, sizeof(string), "{a9c4e4}Ora este acum {0066FF}%d fix{a9c4e4}.",tmphour+1); BroadCast(COLOR_YELLOW,string); ghour = tmphour; bankhour = tmphour; PayDay(); if(GangInfo[1][gHours] >= 1) GangInfo[1][gHours] --; if(GangInfo[2][gHours] >= 1) GangInfo[2][gHours] --; if(GangInfo[3][gHours] >= 1) GangInfo[3][gHours] --; if(GangInfo[4][gHours] >= 1) GangInfo[4][gHours] --; if(GangInfo[5][gHours] >= 1) GangInfo[5][gHours] --; if(GangInfo[6][gHours] >= 1) GangInfo[6][gHours] --; if(GangInfo[7][gHours] >= 1) GangInfo[7][gHours] --; if(GangInfo[8][gHours] >= 1) GangInfo[8][gHours] --; if(GangInfo[9][gHours] >= 1) GangInfo[9][gHours] --; if(GangInfo[10][gHours] >= 1) GangInfo[10][gHours] --; if(GangInfo[11][gHours] >= 1) GangInfo[11][gHours] --; if(GangInfo[12][gHours] >= 1) GangInfo[12][gHours] --; if(GangInfo[13][gHours] >= 1) GangInfo[13][gHours] --; if(GangInfo[14][gHours] >= 1) GangInfo[14][gHours] --; if(GangInfo[15][gHours] >= 1) GangInfo[15][gHours] --; if(GangInfo[16][gHours] >= 1) GangInfo[16][gHours] --; if(GangInfo[17][gHours] >= 1) GangInfo[17][gHours] --; if(GangInfo[18][gHours] >= 1) GangInfo[18][gHours] --; if(GangInfo[19][gHours] >= 1) GangInfo[19][gHours] --; if(GangInfo[20][gHours] >= 1) GangInfo[20][gHours] --; if(GangInfo[21][gHours] >= 1) GangInfo[21][gHours] --; if(GangInfo[22][gHours] >= 1) GangInfo[22][gHours] --; if(GangInfo[23][gHours] >= 1) GangInfo[23][gHours] --; if(GangInfo[24][gHours] >= 1) GangInfo[24][gHours] --; if(GangInfo[25][gHours] >= 1) GangInfo[25][gHours] --; if(GangInfo[26][gHours] >= 1) GangInfo[26][gHours] --; if(GangInfo[27][gHours] >= 1) GangInfo[27][gHours] --; if(GangInfo[28][gHours] >= 1) GangInfo[28][gHours] --; if(GangInfo[29][gHours] >= 1) GangInfo[29][gHours] --; if(GangInfo[30][gHours] >= 1) GangInfo[30][gHours] --; if(GangInfo[31][gHours] >= 1) GangInfo[31][gHours] --; if(GangInfo[32][gHours] >= 1) GangInfo[32][gHours] --; if(GangInfo[33][gHours] >= 1) GangInfo[33][gHours] --; if(GangInfo[34][gHours] >= 1) GangInfo[34][gHours] --; if(GangInfo[35][gHours] >= 1) GangInfo[35][gHours] --; if(GangInfo[36][gHours] >= 1) GangInfo[36][gHours] --; if(GangInfo[37][gHours] >= 1) GangInfo[37][gHours] --; if(GangInfo[38][gHours] >= 1) GangInfo[38][gHours] --; if(GangInfo[39][gHours] >= 1) GangInfo[39][gHours] --; if(GangInfo[40][gHours] >= 1) GangInfo[40][gHours] --; if(GangInfo[41][gHours] >= 1) GangInfo[41][gHours] --; if(GangInfo[42][gHours] >= 1) GangInfo[42][gHours] --; if(GangInfo[43][gHours] >= 1) GangInfo[43][gHours] --; if(GangInfo[44][gHours] >= 1) GangInfo[44][gHours] --; if(GangInfo[45][gHours] >= 1) GangInfo[45][gHours] --; if(GangInfo[46][gHours] >= 1) GangInfo[46][gHours] --; if(GangInfo[47][gHours] >= 1) GangInfo[47][gHours] --; if(GangInfo[48][gHours] >= 1) GangInfo[48][gHours] --; if(jafls >= 1) jafls --; if(jaflv >= 1) jaflv --; SaveBank(); for(new b=5; b<=30; b++) { if(BizzInfo[b][bOwned] == 1) BizzInfo[b][bTill] += 500; } for(new n=0; n<sizeof(GangInfo); n++) { if(GangInfo[n][gFaction] != 0) DynamicFactions[GangInfo[n][gFaction]][fBank] += 3000; } if (realtime) { SetWorldTime(tmphour); } RandomWeather(); } } Imagini / Video (optional):Aici am incercat sa modific enum bInfo { bOwned, bOwner[64], bMessage[128], bExtortion[MAX_PLAYER_NAME], Float:bEntranceX, Float:bEntranceY, Float:bEntranceZ, Float:bExitX, Float:bExitY, Float:bExitZ, bLevelNeeded, bBuyPrice, bEntranceCost, bTill, bLocked, bInterior, bProducts, bMaxProducts, bPriceProd, }; new BizzInfo[18][bInfo]; new Text3D:BizzLabel[sizeof(BizzInfo)]; enum sbInfo { sbOwned, sbOwner[64], sbMessage[128], sbExtortion[MAX_PLAYER_NAME], Float:sbEntranceX, Float:sbEntranceY, Float:sbEntranceZ, sbLevelNeeded, sbBuyPrice, sbEntranceCost, sbTill, sbLocked, sbInterior, sbProducts, sbMaxProducts, sbPriceProd, }; new SBizzInfo[11][sbInfo]; new Text3D:SBizzLabel[sizeof(SBizzInfo)];Inainte am avut 100 sbiz-uri ca aveau bug.Acuma am 11 ca am trecut pe mysql si 18 biz-uri din 90 si ceva Ati incercat sa rezolvati singur?:da
  15. Problema intalnita (descriere):Am trecut biz-urile pe mysql.Dau sa mut un biz cu coamanda /movesbiz.Il muta dau /sbiz 6 sau 9 si apar pe camp.Nu stiu de ce doar astea doua apar pe camp.Nu apar erori dar nu stiu ce sa fac. Ero(area / rile) / warning-(ul / urile):Nu sunt Liniile de cod / sursa / script-ul(obligatoriu): Comanda /movesbiz:http://pastebin.com/7Ui41fUU Comanda /sbiz:http://pastebin.com/ap8GfDfs sistemul de sbiz in mysql:http://pastebin.com/JNRZFNDg Imagini / Video (optional):Nu Ati incercat sa rezolvati singur?:Da, de 2 saptamni tot incerc
  16. Cred ca a uitat o acolada C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(3372) : error 017: undefined symbol "GivePlayerCash" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(3401) : error 017: undefined symbol "GivePlayerCash" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(3996) : error 017: undefined symbol "strmatch" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4004) : error 017: undefined symbol "strmatch" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4075) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4079) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4091) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4095) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4099) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4103) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4107) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4111) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4115) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4119) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4123) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4135) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4139) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4143) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4147) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4151) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4163) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4167) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4171) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4183) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(4187) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(5293) : error 017: undefined symbol "ResetPlayerCash" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors.
  17. Descriere tutorial:Cum sa fac comanda /banip? Comanda ban: if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ban [playerid/numejucator] [days - 0 for permanent] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ban [playerid/numejucator] [days - 0 for permanent] [reason]"); return 1; } if(PlayerInfo[giveplayerid][pAdmin] > 0 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}AdmCmd: {FFFFFF}Nu poti bana admini!"); format(string, sizeof(string), "{0066FF}AdmCmd: {FF0000}%s {FFFFFF}a incercat sa il baneze pe {FF0000}%s {FFFFFF}cu motivul: %s", sendername, giveplayer, (result)); ABroadCast(COLOR_LIGHTRED, string, 1); return 1; } if(PlayerInfo[giveplayerid][pAdmin] > 6) { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}AdmCmd: {FFFFFF}Nu poti bana Fondatorii!"); format(string, sizeof(string), "{0066FF}AdmCmd: {FF0000}%s {FFFFFF}a incercat sa il baneze pe {FF0000}%s {FFFFFF}cu motivul: %s", sendername, giveplayer, (result)); ABroadCast(COLOR_LIGHTRED, string, 1); return 1; } if(strmatch(giveplayer, "Jimmi")) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ban: {FFFFFF}Fraiere, e server-ul meu."); new year, month,day; getdate(year, month, day); new hour, minute, second; gettime(hour, minute, second); format(string, sizeof(string), "Info: %s a primit ban de la %s, motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "{0066FF}Info: %s a primit ban de la %s, motiv: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[giveplayerid][pReg] = -999; Update(giveplayerid, pRegisteredx); new playersip[256]; GetPlayerIp(giveplayerid,playersip,sizeof(playersip)); strmid(PlayerInfo[giveplayerid][pIP], playersip, 0, 100, 255); Update(giveplayerid, pIPx); new query[512]; format(query, sizeof(query) ,"INSERT INTO `banslog` (`BanID`,`user_banned`,`user_banned_ip`,`user_banner`,`ban_reason`,`ban_timestamp`,`ban_time`) VALUES ('','%s','%s','%s','%s',CURRENT_TIMESTAMP,'%d')", giveplayer, PlayerInfo[giveplayerid][pIP], sendername, result, 0); mysql_query(query); SendClientMessage(giveplayerid, COLOR_WHITE, "|__________________[BAN]__________________|"); format(string, sizeof(string), "Adminul care te-a banat : {FFFF00}%s",sendername); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Motivul : {FFFF00}%s",(result)); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Ban : {FFFF00}Permanent"); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Data curenta : {FFFF00}%d-%d-%d",month,day,year); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Data expirarii : {FFFF00}%d-%d-%d",month,day,year,hour, minute, second); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Pentru unban intrati pe forumul nostru: WWW.PG-ZONE.RO"); SendClientMessage(giveplayerid, COLOR_GREY, string); SendClientMessage(giveplayerid, COLOR_WHITE, "|__________________________________________|"); kicktimer[giveplayerid] = SetTimerEx( "KickS",100, true, "d", giveplayerid ); return 1; } } } } return 1; }
  18. Imi da erori: C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28454) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28454) : error 017: undefined symbol "cmdtext" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28455) : error 017: undefined symbol "tmp" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28460) : error 017: undefined symbol "string" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28460) : error 017: undefined symbol "string" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28460) : error 029: invalid expression, assumed zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(28460) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors.
  19. Problema intalnita (descriere):Am inercat sa modific comanda /banip si sa o fac zcmd.Nu stiu daca am facuto corect. Cum as putea face ca in loc de IP a scos banul de pe ip.Sa zic AdmCmd: Administratorul x a scos ban-ul de pe ip x Ero(area / rile) / warning-(ul / urile):Se opreste pawn. Liniile de cod / sursa / script-ul(obligatoriu): CMD:unbanip(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /unbanip [ip]"); return 1; } format(string,sizeof(string),"unbanip %s",tmp); SendRconCommand(string); SendRconCommand("reloadbans"); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "{0066FF}AdmCmd: {FF0000}[%d]%s {FFFFFF}a scos banul de pe ip {FF0000}%s", sendername,tmp); ABroadCast(COLOR_LIGHTRED,string,1); } return 1; } Imagini / Video (optional):http://imgur.com/Sz3WrDA Ati incercat sa rezolvati singur?:da, eu am trecut comanda pe zcmd
  20. Problema intalnita (descriere):Tot face urat crashdetect in server_log.Am incercat sa trec peste erorile date de el dar apar incontinu. Ero(area / rile) / warning-(ul / urile): [23:07:56] [debug] Run time error 4: "Array index out of bounds" [23:07:56] [debug] Accessing element at index 99 past array upper bound 42 [23:07:56] [debug] AMX backtrace: [23:07:56] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:07:57] [debug] Run time error 4: "Array index out of bounds" [23:07:57] [debug] Accessing element at index 99 past array upper bound 42 [23:07:57] [debug] AMX backtrace: [23:07:57] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:39] [debug] Run time error 4: "Array index out of bounds" [23:08:39] [debug] Accessing element at index 99 past array upper bound 42 [23:08:39] [debug] AMX backtrace: [23:08:39] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:39] [debug] Run time error 4: "Array index out of bounds" [23:08:39] [debug] Accessing element at index 99 past array upper bound 42 [23:08:39] [debug] AMX backtrace: [23:08:39] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:39] [debug] Run time error 4: "Array index out of bounds" [23:08:39] [debug] Accessing element at index 99 past array upper bound 42 [23:08:39] [debug] AMX backtrace: [23:08:39] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:39] [debug] Run time error 4: "Array index out of bounds" [23:08:39] [debug] Accessing element at index 99 past array upper bound 42 [23:08:39] [debug] AMX backtrace: [23:08:39] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:39] [debug] Run time error 4: "Array index out of bounds" [23:08:39] [debug] Accessing element at index 99 past array upper bound 42 [23:08:39] [debug] AMX backtrace: [23:08:39] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:40] [debug] Run time error 4: "Array index out of bounds" [23:08:40] [debug] Accessing element at index 99 past array upper bound 42 [23:08:40] [debug] AMX backtrace: [23:08:40] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:41] [debug] Run time error 4: "Array index out of bounds" [23:08:41] [debug] Accessing element at index 99 past array upper bound 42 [23:08:41] [debug] AMX backtrace: [23:08:41] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:41] [debug] Run time error 4: "Array index out of bounds" [23:08:41] [debug] Accessing element at index 99 past array upper bound 42 [23:08:41] [debug] AMX backtrace: [23:08:41] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:41] [debug] Run time error 4: "Array index out of bounds" [23:08:41] [debug] Accessing element at index 99 past array upper bound 42 [23:08:41] [debug] AMX backtrace: [23:08:41] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:41] [debug] Run time error 4: "Array index out of bounds" [23:08:41] [debug] Accessing element at index 99 past array upper bound 42 [23:08:41] [debug] AMX backtrace: [23:08:41] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:41] [debug] Run time error 4: "Array index out of bounds" [23:08:41] [debug] Accessing element at index 99 past array upper bound 42 [23:08:41] [debug] AMX backtrace: [23:08:41] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:42] [debug] Run time error 4: "Array index out of bounds" [23:08:42] [debug] Accessing element at index 99 past array upper bound 42 [23:08:42] [debug] AMX backtrace: [23:08:42] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:42] [debug] Run time error 4: "Array index out of bounds" [23:08:42] [debug] Accessing element at index 99 past array upper bound 42 [23:08:42] [debug] AMX backtrace: [23:08:42] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:42] [debug] Run time error 4: "Array index out of bounds" [23:08:42] [debug] Accessing element at index 99 past array upper bound 42 [23:08:42] [debug] AMX backtrace: [23:08:42] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:42] [debug] Run time error 4: "Array index out of bounds" [23:08:42] [debug] Accessing element at index 99 past array upper bound 42 [23:08:42] [debug] AMX backtrace: [23:08:42] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:43] [debug] Run time error 4: "Array index out of bounds" [23:08:43] [debug] Accessing element at index 99 past array upper bound 42 [23:08:43] [debug] AMX backtrace: [23:08:43] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:53] [debug] Run time error 4: "Array index out of bounds" [23:08:53] [debug] Accessing element at index 99 past array upper bound 42 [23:08:53] [debug] AMX backtrace: [23:08:53] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:53] [debug] Run time error 4: "Array index out of bounds" [23:08:53] [debug] Accessing element at index 99 past array upper bound 42 [23:08:53] [debug] AMX backtrace: [23:08:53] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:54] [debug] Run time error 4: "Array index out of bounds" [23:08:54] [debug] Accessing element at index 99 past array upper bound 42 [23:08:54] [debug] AMX backtrace: [23:08:54] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:54] [debug] Run time error 4: "Array index out of bounds" [23:08:54] [debug] Accessing element at index 99 past array upper bound 42 [23:08:54] [debug] AMX backtrace: [23:08:54] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx [23:08:54] [debug] Run time error 4: "Array index out of bounds" [23:08:54] [debug] Accessing element at index 99 past array upper bound 42 [23:08:54] [debug] AMX backtrace: [23:08:54] [debug] #0 000e2008 in public OnPlayerKeyStateChange (1, 16, 0) from RunStrike.amx Liniile de cod / sursa / script-ul(obligatoriu): public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new string[256]; if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0); if ((newkeys==KEY_ACTION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { if(IsPlayerConnected(playerid)) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525) { if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { //SendClientMessage(playerid,0xa9c4e4FF,"trying to tow a car"); new Float:pX,Float:pY,Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); new Float:vX,Float:vY,Float:vZ; new Found=0; new vid=0; while((vid<MAX_VEHICLES)&&(!Found)) { vid++; GetVehiclePos(vid,vX,vY,vZ); if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid))) { Found=1; if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { new Float:x, Float:y, Float:z, Float:a; GetVehiclePos(vid, x, y, z); GetVehicleZAngle(vid, a); DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Vehiculul a fost parcat aici!"); //if(IsPlayerInArea(playerid, 806.2627, -1309.1725, 931.9445, -1157.6738)) //{ vInfo[OwnedVeh(vid)][vPosX] = x; vInfo[OwnedVeh(vid)][vPosY] = y; vInfo[OwnedVeh(vid)][vPosZ] = z; vInfo[OwnedVeh(vid)][vPosA] = a; vInfo[OwnedVeh(vid)][vTowed] = 1; vUpdate(OwnedVeh(vid), vTowedx); vUpdate(OwnedVeh(vid), vPosXx); vUpdate(OwnedVeh(vid), vPosYx); vUpdate(OwnedVeh(vid), vPosAx); vUpdate(OwnedVeh(vid), vPosZx); //SavePrivVeh(OwnedVeh(vid)); //} return 1; } AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid)); SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Masina a fost tractata cu succes !"); } } if (!Found) { SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Nu sunt masini in jurul tau."); } } else { SendClientMessage(playerid, 0xa9c4e4FF, "{FF0000}TowCar: {FFFFFF}Nu esti intr-un camion {a9c4e4}Tow Car Company{0066FF}!"); return 1; } } } if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { new vid = GetPlayerVehicleID(playerid); if(LightsSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); LightsSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); LightsSTATE = 0; } } } return 1; } if (newkeys & KEY_CTRL_BACK) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 923.26947021484, -1221.3463134766, 17.693405151367)) { SetTimer("TCCGate", 3500, 0); MoveDynamicObject(tccgate, 923.26947021484, -1221.3463134766, 13.443405151367, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || IsACop(playerid)) // taxi bariera { if(PlayerToPoint(15.0, playerid, 1814.7832,-1887.4167,13.4141)) { SetTimer("closebarierataxi",3500,false); MoveObject ( taxibariera, 1811.4906, -1900.4209, 12.5161, 4.0); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { if(PlayerToPoint(10.0, playerid, 3276.703125,-778.546447,11.071708)) { SetTimer("GarageYard", 3500, 0); MoveDynamicObject(barierayd, 3273.603271,-766.213378, -7, 5); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 2777.10009766,917.40002441,9.69999981)) { SetTimer("TCCCGate", 3500, 0); MoveDynamicObject(gatetcc, 2777.10009766,917.40002441,4.69999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 869.0999800,-1206.3000000,14.0000000)) { SetTimer("TCCCGate1", 3500, 0); MoveDynamicObject(gatetcc1, 869.0999800,-1206.3000000,14.0000000, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(PlayerToPoint(5.0, playerid, 1273.0000000,-912.7999900,42.9000000)) { format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetObjectRot(barriersi,0, 0, 267.9950000); SetTimer("SIGateOpen", 3000, 0); return 1; } } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 785.29998779,-1152.40002441,24.29999924)) { SetTimer("OrlsGate1", 3500, 0); MoveDynamicObject(orlstcc, 785.29998779,-1152.40002441,19.29999924, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 659.90002441,-1227.50000000,16.70000076)) { SetTimer("OrlsGate2", 3500, 0); MoveDynamicObject(orlstcc1, 659.90002441,-1227.50000000,7.70000076, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 665.00000000,-1308.80004883,14.19999981)) { SetTimer("OrlsGate3", 3500, 0); MoveDynamicObject(orlstcc2, 665.00000000,-1308.80004883,5.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(IsACop(playerid)) { if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50); MoveDynamicObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50); MoveDynamicObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50); MoveDynamicObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50); MoveDynamicObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010,8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010,8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981,8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981,8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerToPoint(5.0, playerid, 1544.67, -1630.88, 13.11)) { SetTimer("PDBarrier", 3500, 0); MoveDynamicObject(barrierpd, 1544.67, -1630.88, 13.11+0.0001, 0.0001,0.00, 0.36, 269.91); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(5.0, playerid, 1588.74, -1637.92, 15.08)) { SetTimer("PDGate", 5500, 0); MoveDynamicObject(gatepd, 1588.74, -1637.92, 5.08, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(2.0, playerid, 1583.4039,-1637.3866,13.3905)) { SetTimer("PDDoor", 3500, 0); MoveDynamicObject(doorpd, 1579.85, -1637.92, 2.34, 8); format(string, sizeof(string), "%s impinge incet usa, lasand-o deschisa.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(7.0, playerid, 1761.30,-1691.50,14.10)) { SetTimer("FBIGate", 3500, 0); MoveDynamicObject(gatefbi, 1761.30,-1684.60,14.10, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } return 1; } } if(!IsPlayerInAnyVehicle(playerid) && (newkeys & KEY_YES)) { new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); if(pos[1] < -1301.4 && pos[1] > -1303.2417 && pos[0] < 1786.2131 && pos[0] > 1784.1555) // He is using the elevator button ShowElevatorDialog(playerid); else // Is he in a floor button? { if(pos[1] > -1301.4 && pos[1] < -1299.1447 && pos[0] < 1785.6147 && pos[0] > 1781.9902) { // He is most likely using it, check floor: new i=20; while(pos[2] < GetDoorsZCoordForFloor(i) + 3.5 && i > 0) i --; if(i == 0 && pos[2] < GetDoorsZCoordForFloor(0) + 2.0) i = -1; if(i <= 19) { CallElevator(playerid, i + 1); GameTextForPlayer(playerid, "~r~Ai chemat liftul!", 3500, 4); } } } } if (newkeys & KEY_YES) { new vid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(BonnetSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); BonnetSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); BonnetSTATE = 0; } } } if (newkeys & KEY_NO) { new vid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(BootSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); BootSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); BootSTATE = 0; } } } if (newkeys & KEY_CTRL_BACK) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {} else return 1; if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 923.26947021484, -1221.3463134766, 17.693405151367)) { SetTimer("TCCGate", 3500, 0); MoveDynamicObject(tccgate, 923.26947021484, -1221.3463134766, 13.443405151367, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 2777.10009766,917.40002441,9.69999981)) { SetTimer("TCCCGate", 3500, 0); MoveDynamicObject(gatetcc, 2777.10009766,917.40002441,4.69999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 869.0999800,-1206.3000000,14.0000000)) { SetTimer("TCCCGate1", 3500, 0); MoveDynamicObject(gatetcc1, 869.0999800,-1206.3000000,14.0000000, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(PlayerToPoint(5.0, playerid, 1273.0000000,-912.7999900,42.9000000)) { SetTimer("PDBarrier1", 3500, 0); MoveDynamicObject(barriersi, 1273.0000000,-912.7999900,42.9000000+0.0000000,268.0000000,10.0000000); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010, 8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010, 8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981, 8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 785.29998779,-1152.40002441,24.29999924)) { SetTimer("OrlsGate1", 3500, 0); MoveDynamicObject(orlstcc, 785.29998779,-1152.40002441,19.29999924, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 659.90002441,-1227.50000000,16.70000076)) { SetTimer("OrlsGate2", 3500, 0); MoveDynamicObject(orlstcc1, 659.90002441,-1227.50000000,7.70000076, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 665.00000000,-1308.80004883,14.19999981)) { SetTimer("OrlsGate3", 3500, 0); MoveDynamicObject(orlstcc2, 665.00000000,-1308.80004883,5.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(IsACop(playerid)) { if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50); MoveDynamicObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50); MoveDynamicObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50); MoveDynamicObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50); MoveDynamicObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010,8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010,8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981,8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981,8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerToPoint(5.0, playerid, 1544.67, -1630.88, 13.11)) { SetTimer("PDBarrier", 3500, 0); MoveDynamicObject(barrierpd, 1544.67, -1630.88, 13.11+0.0001, 0.0001,0.00, 0.36, 269.91); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(5.0, playerid, 1588.74, -1637.92, 15.08)) { SetTimer("PDGate", 5500, 0); MoveDynamicObject(gatepd, 1588.74, -1637.92, 5.08, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(2.0, playerid, 1583.4039,-1637.3866,13.3905)) { SetTimer("PDDoor", 3500, 0); MoveDynamicObject(doorpd, 1579.85, -1637.92, 2.34, 8); format(string, sizeof(string), "%s impinge incet usa, lasand-o deschisa.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(7.0, playerid, 1761.30,-1691.50,14.10)) { SetTimer("FBIGate", 3500, 0); MoveDynamicObject(gatefbi, 1761.30,-1684.60,14.10, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } } } if ((newkeys==KEY_SECONDARY_ATTACK)) { if(AnimPlay[playerid] == 1) { ClearAnimations(playerid); AnimPlay[playerid] = 0; } GetPlayerPos(playerid, X, Y, Z); //InteriorPos[playerid][0] = X; //InteriorPos[playerid][1] = Y; //InteriorPos[playerid][2] = Z; if(IsPlayerConnected(playerid)) { if(GetPlayerInterior(playerid) == 1 && IsPlayerInAnyVehicle(playerid) || GetPlayerInterior(playerid) == 3 && IsPlayerInAnyVehicle(playerid) || GetPlayerInterior(playerid) == 2 && IsPlayerInAnyVehicle(playerid)) { return 0; } for(new i = 0; i < MAX_HOUSES; i++) { CheatTimer[playerid] = 3; //if(CPTimer[playerid] > 0) return 1; if(PlayerToPoint(1.5, playerid, HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ])) { if(HouseInfo[i][hOwned] == 0) { //new string[256]; if(GetPlayerCash(playerid) >= HouseInfo[i][hValue]) { format(string, sizeof(string), "{F6F6F6}Vrei sa cumperi aceasta casa pentru {00BC00}$%d{F6F6F6}?", HouseInfo[i][hValue]); ShowPlayerDialog(playerid, 300, DIALOG_STYLE_MSGBOX, "{00BC00}Meniul {F6F6F6}Casei", string, "Cumpara", "Pleaca"); HouseRequested[playerid] = i; //CPTimer[playerid] = 3; } } else { if(strmatch(HouseInfo[i][hOwner], pName(playerid)) || PlayerInfo[playerid][pPhousekey] == i) { SetPlayerInterior(playerid, HouseInfo[i][hInt]); SetPlayerPos(playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1]); SetPlayerVirtualWorld(playerid, i); EnteredHouse[playerid] = i; //CPTimer[playerid] = 3; return 1; } if(HouseInfo[i][hLock] == 0) { SetPlayerInterior(playerid, HouseInfo[i][hInt]); SetPlayerPos(playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1]); SetPlayerVirtualWorld(playerid, i); EnteredHouse[playerid] = i; } else if(HouseInfo[i][hLock] != 0 && HouseInfo[i][hPrice] != 0) { HouseRequested[playerid] = i; ShowPlayerDialog(playerid, 314, DIALOG_STYLE_LIST, "{00BC00}Meniul {F6F6F6}Casei", "{00BC00}1. {F6F6F6}Cumpara casa\n{00BC00}2. {F6F6F6}Intra prin efractie", "Alege", "Iesi"); House[playerid] = i; //return ShowPlayerDialog(playerid, 313, DIALOG_STYLE_MSGBOX, "{F6F6F6}Incuietoarea este slabita..", "{F6F6F6}Ai fortat usa dar n-ai putut sa intri.\n{F6F6F6}Sunt sanse sa poti intra in casa prin efractie. Vrei sa intri?", "Intra", "Pleaca"); } else if(HouseInfo[i][hLock] != 0 && HouseInfo[i][hPrice] == 0) { House[playerid] = i; return ShowPlayerDialog(playerid, 313, DIALOG_STYLE_MSGBOX, "{F6F6F6}Poti intra prin efractie..", "{F6F6F6}Ai incercat clanta usii si ai observat ca se poate distruge usor.\n{F6F6F6}Sunt sanse sa poti intra prin efractie. Esti sigur ca vrei sa faci asta?", "Da", "Nu"); } } } } for(new i = 0; i < MAX_HOUSES; i++) { CheatTimer[playerid] = 3; if(PlayerToPoint(3.0, playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1])) { if(GetPlayerVirtualWorld(playerid) != 0) { EnteredHouse[playerid] = 0; if(HouseInfo[i][hUpgradeLock] != 13) SetPlayerInterior(playerid, 0); else SetPlayerInterior(playerid, 0); if(PlayerToPoint(3.0, playerid, 2282.9983, -1139.7643, 1050.8984)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, HouseInfo[GetPlayerVirtualWorld(playerid)][hPosX], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosY], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosZ]); SetPlayerVirtualWorld(playerid, 0); return 1; } SetPlayerPos(playerid, HouseInfo[GetPlayerVirtualWorld(playerid)][hPosX], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosY], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosZ]); if(HouseInfo[i][hUpgradeLock] != 13) SetPlayerVirtualWorld(playerid, 0); else SetPlayerVirtualWorld(playerid, HouseInfo[i][hForSale]); return 1; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { //printf("Found House :%d",i); if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Doar pentru politisti !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } /*if(BizzInfo[i][bProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; }*/ if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); GivePlayerCash(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); //PlayerInfo[playerid][pLocal] = i; } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } for(new i = 0; i < sizeof(SBizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ])) { if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= SBizzInfo[i][sbEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(SBizzInfo[i][sbLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(i == 10) { PaintballPlayers ++; PlayerPaintballing[playerid] = 1; new rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); TogglePlayerControllable(playerid, 0); } else if(i == 11) { if(KartingRound != 0) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Kart: {FFFFFF}O cursa este deja in desfasurare! Asteapta sa se termine!"); PlayerKarting[playerid] = 1; SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acum poti intra in cursa, ia un kart acum!"); } else { return 1; } GivePlayerCash(playerid,-SBizzInfo[i][sbEntranceCost]); gSpentCash[playerid] = GetPlayerCash(playerid); SBizzInfo[i][sbProducts]--; SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost]; ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]); new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i); printf("%s", string); PayLog(string); OnPropUpdate(); } } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,1529.5265,-1849.8447,13.5469))//HOTEL 1 { SetPlayerPos(playerid, 2268.5156,1647.7682,1084.2344); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~r~Hotel ~y~]]",5000,3); SetPlayerVirtualWorld(playerid, 1); return 1; } if (PlayerToPoint(3, playerid,2268.5156,1647.7682,1084.2344) && GetPlayerVirtualWorld(playerid) == 1)//HOTEL 1 { SetPlayerPos(playerid, 1529.5265,-1849.8447,13.5469); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid,918.7299,-1252.1407,16.2109))//TCC HQ { SetPlayerPos(playerid, 3537.5964,-2438.3169,1645.1078); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~y~TCC ~r~HQ",5000,1); SetPlayerVirtualWorld(playerid, 1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 2000, 0, "i", playerid); return 1; } if (PlayerToPoint(3, playerid,2018.5779,1017.7459,996.8750)) // Casino exit { SetPlayerPos(playerid, 2020.0862,1007.6984,10.8203); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"~w~Las ~r~ Venturas",5000,1); SetPlayerVirtualWorld(playerid,0); return 1; } if (PlayerToPoint(3, playerid,2814.5120,972.4366,10.7500))//TCC HQ 2 { SetPlayerPos(playerid, 3537.5964,-2438.3169,1645.1078); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~y~TCC ~r~HQ",5000,1); SetPlayerVirtualWorld(playerid, 2); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 2000, 0, "i", playerid); return 1; } if (PlayerToPoint(3, playerid, 3537.5964,-2438.3169,1645.1078) && GetPlayerVirtualWorld(playerid) == 1)//TCC HQ { SetPlayerPos(playerid, 918.7299,-1252.1407,16.2109); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid, 3537.5964,-2438.3169,1645.1078) && GetPlayerVirtualWorld(playerid) == 2)//TCC HQ { SetPlayerPos(playerid, 2814.5120,972.4366,10.7500); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid,1247.8420,-1560.3422,13.5556))//Loterie { SetPlayerPos(playerid, 834.0397,7.3565,1004.1870); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~y~Loteria ~r~Los~w~ Santos",5000,1); SetPlayerVirtualWorld(playerid, 5); return 1; } if (PlayerToPoint(3, playerid,834.0397,7.3565,1004.1870) && GetPlayerVirtualWorld(playerid) == 5)//Loterie { SetPlayerPos(playerid, 1247.8420,-1560.3422,13.5556); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~w~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if(CarnivalStarted != 0) { if (PlayerToPoint(3, playerid,1429.1669,-3139.4631,8.1687))//Loterie-Carnaval { SetPlayerPos(playerid, 834.0397,7.3565,1004.1870); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~r~Loteria ~y~Carnavalului",5000,1); return 1; } if (PlayerToPoint(3, playerid,834.0397,7.3565,1004.1870))//Loterie-Carnaval { SetPlayerPos(playerid, 1429.1669,-3139.4631,8.1687); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~y~Carnaval",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 5000, 0, "i", playerid); return 1; } if (PlayerToPoint(3.5, playerid,1383.4779,-3084.5549,8.1687) || PlayerToPoint(3.5, playerid,1376.8757,-3084.6108,8.1687) || PlayerToPoint(3.5, playerid,1370.4219,-3084.6077,8.1687))//Pacanele { if(PacaneleTimer[playerid] <= 0) { StartOnArmedBanditForPlayer(playerid); PacaneleTimer[playerid] = 6; } } if (PlayerToPoint(1.0, playerid,1368.7168,-3109.7495,8.1687))//BASKET STANGA { if(Baskets <= 0) { SetPlayerFacingAngle(playerid, 92.7033); SetPlayerPos(playerid, 1369.3306,-3110.0771,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket1", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[328], 1368.860351,-3110.151855,7.262943); BasketStep[playerid] = 680; Baskets = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1368.5408,-3097.8533,8.1687))//BASKET DREAPTA { if(Baskets2 <= 0) { SetPlayerFacingAngle(playerid, 95.4138); SetPlayerPos(playerid, 1368.5408,-3097.8533,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket3", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[330], 1368.269775,-3097.932128,7.262943); BasketStep[playerid] = 680; Baskets2 = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1368.8434,-3103.7166,8.1687))//BASKET MIJLOC { if(Baskets1 <= 0) { SetPlayerFacingAngle(playerid, 88.9875); SetPlayerPos(playerid, 1368.8434,-3103.7166,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket2", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[329], 1368.520019,-3103.755859,7.262943); BasketStep[playerid] = 680; Baskets1 = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1417.8304,-3155.1316,8.1687))//BOWLING STANGA { if(BowlingTimer[playerid] <= 0) { if(Bowlings[playerid] >= 30) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Carnaval: {FFFFFF}Ai jucat de prea multe ori bowling, asteapta pana la payday!"); BowlingTimer[playerid] = 4; SetPlayerFacingAngle(playerid, 266.5608); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Bowling1", 2240, false, "i", playerid); Bowlings[playerid] ++; return 1; } } if (PlayerToPoint(1.0, playerid,1417.9585,-3157.6885,8.1687))//BOWLING DREAPTA { if(BowlingTimer[playerid] <= 0) { if(Bowlings[playerid] >= 30) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Carnaval: {FFFFFF}Ai jucat de prea multe ori bowling, asteapta pana la payday!"); BowlingTimer[playerid] = 4; SetPlayerFacingAngle(playerid, 266.5608); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); SetDynamicObjectPos(CarnivalObjects[201], 1418.00000000,-3158.00000000,7.30000019); MoveDynamicObject(CarnivalObjects[201], 1429.6647,-3157.9231,7.40000010, 5); SetTimerEx("Bowling2", 2240, false, "i", playerid); Bowlings[playerid] ++; return 1; } } } if (PlayerToPoint(5, playerid,2244.2517,-1665.4854,15.4766))//Binco Gym { SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812); SetPlayerVirtualWorld(playerid, 101); //PlayerInfo[playerid][pVirWorld] = 101; SetPlayerInterior(playerid, 15); GameTextForPlayer(playerid, "~y~Binco",5000,1); return 1; } if (PlayerToPoint(5, playerid, 493.390991,-22.722799,1000.679687))//Alhambra { SetPlayerPos(playerid, 1836.3668,-1682.6283,13.3509); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 101; SetPlayerInterior(playerid, 0); StopAudioStreamForPlayer(playerid); GameTextForPlayer(playerid, "~r~Los ~w~Santos",5000,1); return 1; } if (PlayerToPoint(5, playerid,1836.3668,-1682.6283,13.3509))//Alhambra { SetPlayerPos(playerid, 493.390991,-22.722799,1000.679687); SetPlayerVirtualWorld(playerid, 10); //PlayerInfo[playerid][pVirWorld] = 101; PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778"); SetPlayerInterior(playerid, 17); GameTextForPlayer(playerid, "~b~Alhambra",5000,1); return 1; } if (PlayerToPoint(5, playerid, 207.737991,-109.019996,1005.132812) && GetPlayerVirtualWorld(playerid) == 101)//Binco Gym { SetPlayerPos(playerid,2244.2517,-1665.4854,15.4766); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los Santos",5000,1); return 1; } if(PlayerInfo[playerid][pMember]==1 || PlayerInfo[playerid][pMember]==2 || PlayerInfo[playerid][pMember]==3 || PlayerInfo[playerid][pLeader]==1 || PlayerInfo[playerid][pLeader]==2 || PlayerInfo[playerid][pLeader]==3) { if (PlayerToPoint(5, playerid, 1797.7900,-1578.9369,14.0905)) // LSJail Enter { if(JailTimer[playerid] < 1) { SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); GameTextForPlayer(playerid, "~r~Inchisoarea~w~ Los Santos",5000,1); } } if (PlayerToPoint(5, playerid, 1779.3185,-1576.1315,1734.9430)) // LS Jail Exit { if(JailTimer[playerid] < 1) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1797.7900,-1578.9369,14.0905); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } } } if(PlayerInfo[playerid][pMember]==11 || PlayerInfo[playerid][pMember]==11) { if(PlayerToPoint(5, playerid, 1265.5441,-868.1102,44.8438) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1726.8035,-1638.2405,20.2231); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); } if(PlayerToPoint(5, playerid, 1726.8035,-1638.2405,20.2231) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1265.5441,-868.1102,44.8438); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); } } if(IsPlayerInRangeOfPoint(playerid, 3, 318.564971,1118.209960,1083.882812) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerPos(playerid, 2166.2742,-1671.5643,15.0739); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 802.7416,-1795.3979,13.0234)) // GRABKICK GYM { SetPlayerInterior(playerid, 7); SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029); GameTextForPlayer(playerid, "~y~Scoala~b~Grabkick",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 773.579956,-77.096694,1000.655029)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 802.7416,-1795.3979,13.0234); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } if (PlayerToPoint(3, playerid, 589.2680,-1768.2806,14.4023))//Karate { SetPlayerPos(playerid,774.213989,-48.924297,1000.585937); SetPlayerInterior(playerid,6); GameTextForPlayer(playerid, "~y~Scoala~r~Karate", 1000, 1); SetPlayerVirtualWorld(playerid, 6); return 1; } if (PlayerToPoint(3, playerid, 774.213989,-48.924297,1000.585937) && GetPlayerVirtualWorld(playerid) == 6)//Karate { SetPlayerPos(playerid,589.2680,-1768.2806,14.4023); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3.0, playerid,1481.0463,-1770.3093,18.7958)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1472.6022,-1726.4803,1052.0490); GameTextForPlayer(playerid, "~w~Primaria", 5000, 1); PlayerInfo[playerid][pInt] = 3; PlayerInfo[playerid][pLocal] = 241; SetPlayerVirtualWorld(playerid, 0); } if (PlayerToPoint(3.0, playerid,2413.1052,1123.7834,10.8203)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1472.6022,-1726.4803,1052.0490); GameTextForPlayer(playerid, "~w~Primaria", 5000, 1); PlayerInfo[playerid][pInt] = 3; PlayerInfo[playerid][pLocal] = 241; SetPlayerVirtualWorld(playerid, 2); } if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3.0, playerid, 2131.8369,-1150.5486,24.1454)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 10) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 0; UsingDealership[playerid] = 1; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 10); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1410.9225,-1701.1395,13.5395)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1951.3833,259.0796,41.0471) && UsingDealership[i] != 0) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 2; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 10); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 2751.8899,-1468.2407,30.4531)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 3; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 370.9933,-2052.3145,8.0156)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, 544.7953,-2497.9021,-0.3487) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 4; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1606.3135,-2432.6738,13.5547)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, 1533.4207,-2627.9856,13.5469) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 5; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa iti alegi un avion."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1948.2946,2068.7778,11.0610)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 12) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 0; UsingDealership[playerid] = 6; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 12); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } } if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)// Hitman entrance { if (PlayerToPoint(2, playerid,1106.5240,-299.7180,74.5391)) { SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812); SetPlayerVirtualWorld(playerid, 54); //PlayerInfo[playerid][pVirWorld] = 54; SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~r~Hitman ~w~HQ",5000,1); PlayerHQ[playerid] = 8; return 1; } } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)// News Reporter HQ { if (PlayerToPoint(5, playerid,1219.0646,-1811.7590,16.5938)) { SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 3); //PlayerInfo[playerid][pVirWorld] = 3; GameTextForPlayer(playerid, "~b~News Reporter ~w~HQ",5000,1); return 1; } if (PlayerToPoint(5, playerid,1047.1732,1008.9983,11.0000)) { SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 3; GameTextForPlayer(playerid, "~b~News Reporter ~w~HQ",5000,1); return 1; } } if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)// Taxi entrance LAS Venturas { if (PlayerToPoint(5, playerid,1752.9025,-1894.3319,13.5573)) { SetPlayerPos(playerid, -228.9727,1401.2550,27.7656); SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 70); //PlayerInfo[playerid][pVirWorld] = 70; GameTextForPlayer(playerid, "~b~Taxi Cab Company ~w~HQ",5000,1); return 1; } if (PlayerToPoint(5, playerid,2444.2393,1662.8051,10.8203)) { SetPlayerPos(playerid, -228.9727,1401.2550,27.7656); SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 73); //PlayerInfo[playerid][pVirWorld] = 70; GameTextForPlayer(playerid, "~b~Taxi Cab Company ~w~HQ",5000,1); return 1; } } if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)// Ballas entrance { if (PlayerToPoint(2, playerid, 1456.5680,2773.4163,10.8203)) { SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~r~Ballas ~w~HQ",5000,1); PlayerHQ[playerid] = 12; return 1; } if (PlayerToPoint(2, playerid,1281.5957,-789.3074,1084.0078)) { //new weapons[13][2]; /*GetPlayerWeaponData(playerid, 0, PlayerInfo[playerid][Weapon1], PlayerInfo[playerid][Weapon1a]); GetPlayerWeaponData(playerid, 1, PlayerInfo[playerid][Weapon2], PlayerInfo[playerid][Weapon2a]); GetPlayerWeaponData(playerid, 2, PlayerInfo[playerid][Weapon3], PlayerInfo[playerid][Weapon3a]); GetPlayerWeaponData(playerid, 3, PlayerInfo[playerid][Weapon4], PlayerInfo[playerid][Weapon4a]); GetPlayerWeaponData(playerid, 4, PlayerInfo[playerid][Weapon5], PlayerInfo[playerid][Weapon5a]); GetPlayerWeaponData(playerid, 5, PlayerInfo[playerid][Weapon6], PlayerInfo[playerid][Weapon6a]); GetPlayerWeaponData(playerid, 6, PlayerInfo[playerid][Weapon7], PlayerInfo[playerid][Weapon7a]); GetPlayerWeaponData(playerid, 7, PlayerInfo[playerid][Weapon8], PlayerInfo[playerid][Weapon8a]); GetPlayerWeaponData(playerid, 8, PlayerInfo[playerid][Weapon9], PlayerInfo[playerid][Weapon9a]); GetPlayerWeaponData(playerid, 9, PlayerInfo[playerid][Weapon10], PlayerInfo[playerid][Weapon10a]); GetPlayerWeaponData(playerid, 10, PlayerInfo[playerid][Weapon11], PlayerInfo[playerid][Weapon11a]); GetPlayerWeaponData(playerid, 11, PlayerInfo[playerid][Weapon12], PlayerInfo[playerid][Weapon12a]);*/ SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~r~Ballas",5000,1); SetPlayerVirtualWorld(playerid, 12); PlayerHQ[playerid] = 6; Train[playerid] = 1; ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); ServerWeapon(playerid, 34, 99999); return 1; } } if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)// Falcone entrance { if(PlayerToPoint(2, playerid,1531.4147,751.1722,11.0234)) { SetPlayerPos(playerid, 2542.2341,-1303.9574,1025.0703); SetPlayerInterior(playerid, 2); GameTextForPlayer(playerid, "~b~Falcone Familigia ~w~HQ",5000,1); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,2523.9292,-1309.8328,1031.4219)) { SetPlayerPos(playerid, -2029.7631,-118.7373,1035.1719); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~b~Sedinte ~r~Falcone",5000,1); SetPlayerVirtualWorld(playerid, 6); PlayerHQ[playerid] = 6; return 1; } if (PlayerToPoint(2, playerid,2523.7820,-1297.9170,1031.4219)) { SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~r~Falcone",5000,1); ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); ServerWeapon(playerid, 34, 99999); SetPlayerVirtualWorld(playerid, 6); Train[playerid] = 1; PlayerHQ[playerid] = 6; return 1; } } if (PlayerToPoint(2, playerid, 1554.9100,-1675.6428,16.1953))//LSPD { SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, 25); GameTextForPlayer(playerid, "~b~Los Santos Police Department", 1000, 1); return 1; } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)// Orleans entrance { if (PlayerToPoint(2, playerid, 690.3832,-1275.9108,13.5599)) { SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083); SetPlayerInterior(playerid, 12); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 61; GameTextForPlayer(playerid, "~b~Orleans Familly ~w~HQ",5000,1); PlayerHQ[playerid] = 13; return 1; } if (PlayerToPoint(2, playerid,2332.5752,-1143.9515,1054.3047)) { SetPlayerPos(playerid, -2029.7631,-118.7373,1035.1719); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~b~Sedinte ~w~Orleans",5000,1); SetPlayerVirtualWorld(playerid, 13); PlayerHQ[playerid] = 6; return 1; } if (PlayerToPoint(2, playerid,2316.2310,-1144.1193,1054.3047)) { SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~w~Orleans",5000,1); ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); Train[playerid] = 1; SetPlayerVirtualWorld(playerid, 13); ServerWeapon(playerid, 34, 99999); PlayerHQ[playerid] = 6; return 1; } } if(IsPlayerInRangeOfPoint(playerid, 3, 2037.0236,-1404.7897,17.2504)) { SetPlayerPos(playerid, 1222.0614,-1250.0448,1287.8257); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~b~Fireman/Paramedic ~w~HQ ~b~Los Santos",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 3500, 0, "i", playerid); } if(IsPlayerInRangeOfPoint(playerid, 3, 1607.4680,1816.4386,10.8203))//Medics { SetPlayerPos(playerid, 1222.0614,-1250.0448,1287.8257); SetPlayerVirtualWorld(playerid, 3); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~b~Fireman/Paramedic ~w~HQ ~b~Las Venturas",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 3500, 0, "i", playerid); } if (PlayerToPoint(2, playerid, 2337.2202,2458.4097,14.9688))//LVPD { SetPlayerPos(playerid,288.7609,168.6815,1007.1719); SetPlayerInterior(playerid,3); SetPlayerVirtualWorld(playerid, 25); PlayerHQ[playerid] = 25; GameTextForPlayer(playerid, "~b~Las Venturas Police Departament", 1000, 1); return 1; } if(IsACop(playerid))// PD Armoury entrance { if (PlayerToPoint(2, playerid, 1568.6150,-1690.8213,5.8906)) { PlayerInfo[playerid][pLocal] = 102; SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Depozit de Arme",5000,1); PlayerHQ[playerid] = 25; return 1; } if (PlayerToPoint(2, playerid, 3188.6760,-628.7715,5.2262)) { PlayerInfo[playerid][pLocal] = 102; SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, 85); GameTextForPlayer(playerid, "~b~Depozit de Arme",5000,1); PlayerHQ[playerid] = 25; return 1; } } if (PlayerToPoint(2, playerid, 1462.3665,-1010.9435,26.8438))//LS BANK { SetPlayerVirtualWorld(playerid, 41); SetPlayerPos(playerid,2306.5630,-15.6414,26.7496); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Banca ~b~Los Santos", 1000, 1); return 1; } if (PlayerToPoint(2, playerid, 2577.5444,1324.8699,10.8203))//LS BANK { SetPlayerVirtualWorld(playerid, 42); //PlayerInfo[playerid][pVirWorld] = 41; SetPlayerPos(playerid,2306.5630,-15.6414,26.7496); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Banca ~b~Las Venturas", 1000, 1); return 1; } if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (PlayerToPoint(2, playerid, 1778.2577,-1663.2786,14.4362) && GetPlayerVirtualWorld(playerid) == 0)//F.B.I. { SetPlayerPos(playerid,288.7609,168.6815,1007.1719); SetPlayerInterior(playerid,3); PlayerHQ[playerid] = 25; GameTextForPlayer(playerid, "~b~F.B.I", 1000, 1); return 1; } } if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,2); SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219); PlayerInfo[playerid][pInt] = 2; PlayerInfo[playerid][pLocal] = 242; } } if (PlayerToPoint(3.0, playerid,1205.0947,-10.1685,1000.9219)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1073.0619,-344.5148,73.9922); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 0; } } if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista 8ball", 5000, 1); SetPlayerInterior(playerid,7); SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563); } if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista de nisip", 5000, 1); SetPlayerInterior(playerid,4); SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472); } if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista de stunt", 5000, 1); SetPlayerInterior(playerid,14); SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313); } if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if (PlayerToPoint(5, playerid, 246.375991,109.245994,1003.218750))//Armoury PD Exit { if(GetPlayerVirtualWorld(playerid) != 25) { PlayerInfo[playerid][pLocal] = 0; SetPlayerPos(playerid, 1568.6150,-1690.8213,5.8906); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); } else { PlayerInfo[playerid][pLocal] = 0; SetPlayerPos(playerid, 1554.9100,-1675.6428,16.1953); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); } } if (PlayerToPoint(5, playerid, 318.564971,1118.209960,1083.882812) && GetPlayerVirtualWorld(playerid) == 54) // Hitman Exit { SetPlayerPos(playerid,1106.5240,-299.7180,74.5391); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 5) { SetPlayerPos(playerid, 135.0181,1381.5354,1083.8657); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~g~HQ ~w~Dallas",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 13) { SetPlayerPos(playerid, 2316.2310,-1144.1193,1054.3047); SetPlayerInterior(playerid, 12); GameTextForPlayer(playerid, "~g~HQ ~y~Orleans",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 14) { SetPlayerPos(playerid, -2170.3445,636.0457,1052.3750); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~w~Los ~g~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 15) { SetPlayerPos(playerid, 2196.2881,1666.9287,12.3672); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~b~~h~Venturas",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(3.0, playerid,1472.6022,-1726.4803,1052.0490) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1481.0463,-1770.3093,18.7958); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } if (PlayerToPoint(3.0, playerid,1472.6022,-1726.4803,1052.0490) && GetPlayerVirtualWorld(playerid) == 2) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2413.1052,1123.7834,10.8203); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 3, 1222.0614,-1250.0448,1287.8257) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerPos(playerid, 2037.0236,-1404.7897,17.2504); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Los~r~Santos",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 1222.0614,-1250.0448,1287.8257) && GetPlayerVirtualWorld(playerid) == 3) { SetPlayerPos(playerid, 1607.4680,1816.4386,10.8203); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Las~r~Venturas",5000,1); } if (PlayerToPoint(8, playerid, 1267.663208,-781.323242,1091.906250) && GetPlayerVirtualWorld(playerid) == 0) // Ballas Exit { SetPlayerPos(playerid, 1456.5680,2773.4163,10.8203); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 1494.325195,1304.942871,1093.289062)) // TAXI LV Exit { if(GetPlayerVirtualWorld(playerid) == 71) // School Instructorss Exit { SetPlayerPos(playerid, 1111.3130,-1795.6102,16.5938); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } else if(GetPlayerVirtualWorld(playerid) == 3) // News Reporter Exit { SetPlayerPos(playerid, 1219.2949,-1812.7257,16.5938); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } else if(GetPlayerVirtualWorld(playerid) == 0) // News Reporter Exit { SetPlayerPos(playerid, 1047.1732,1008.9983,11.0000); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); } //return 1; } if(GetPlayerVirtualWorld(playerid) == 70 && PlayerToPoint(3.0, playerid, -228.9727,1401.2550,27.7656)) // Taxi Cab Company LV Exit { SetPlayerPos(playerid, 1752.9025,-1894.3319,13.5573); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } if(GetPlayerVirtualWorld(playerid) == 73 && PlayerToPoint(3.0, playerid, -228.9727,1401.2550,27.7656)) // Taxi Cab Company LV Exit { SetPlayerPos(playerid, 2444.2393,1662.8051,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); } if (PlayerToPoint(5, playerid, 2542.2341,-1303.9574,1025.0703) && GetPlayerVirtualWorld(playerid) != 77 && GetPlayerVirtualWorld(playerid) != 81) // Dallas Crime Exit { SetPlayerPos(playerid,1531.4147,751.1722,11.0234); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 6) { SetPlayerPos(playerid, 2523.9292,-1309.8328,1031.4219); SetPlayerInterior(playerid, 2); GameTextForPlayer(playerid, "~w~Falcone ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 5) { SetPlayerPos(playerid, 135.2439,1380.0226,1088.3672); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~w~Dallas ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 13) { SetPlayerPos(playerid, 2332.5752,-1143.9515,1054.3047); SetPlayerInterior(playerid, 12); GameTextForPlayer(playerid, "~y~Orleans ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; //return 1; } if (PlayerToPoint(5, playerid, 2324.6780,-1148.6440,1050.7101) && GetPlayerVirtualWorld(playerid) != 68) // Orleans Exit { SetPlayerPos(playerid, 690.3832,-1275.9108,13.5599); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 2542.2341,-1303.9574,1025.0703) && GetPlayerVirtualWorld(playerid) != 71 && GetPlayerVirtualWorld(playerid) != 57) // Falcone Famiglia Exit { SetPlayerPos(playerid,1531.4147,751.1722,11.0234); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Las ~g~Venturas",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 140.3267,1366.7233,1083.8594) && GetPlayerVirtualWorld(playerid) != 71 && GetPlayerVirtualWorld(playerid) != 57) // Dallas Exit { SetPlayerPos(playerid,1122.7065,-2037.0063,69.8942); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, -2159.122802,641.517517,1052.381713) && GetPlayerVirtualWorld(playerid) != 19) // 15 Avenue Families Exit { SetPlayerPos(playerid, 2495.3704,-1689.8271,14.6741); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 2306.5630,-15.6414,26.7496) && GetPlayerVirtualWorld(playerid) == 41)//LS BANK { SetPlayerPos(playerid, 1462.3665,-1010.9435,26.8438); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); //return 1; } if (PlayerToPoint(5, playerid, 2306.5630,-15.6414,26.7496) && GetPlayerVirtualWorld(playerid) == 42)//LS BANK { SetPlayerPos(playerid, 2577.5444,1324.8699,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); //return 1; } if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438); } if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344); } if (PlayerToPoint(5, playerid, 288.7609,168.6815,1007.1719) && GetPlayerVirtualWorld(playerid) == 0)//F.B.I. { SetPlayerPos(playerid, 1778.2577,-1663.2786,14.4362); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); //return 1; } if (PlayerToPoint(5, playerid, 288.7609,168.6815,1007.1719) && GetPlayerVirtualWorld(playerid) == 25)//LVPD { SetPlayerPos(playerid, 2337.2202,2458.4097,14.9688); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Las ~r~Venturas", 1000, 1); //return 1; } if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344); } if(NoFuel[playerid] == 1) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); NoFuel[playerid] = 0; } if(PlayerToPoint(5, playerid, 2387.9207,2465.9854,10.8203)) { SetPlayerPos(playerid, 288.745971,169.350997,1007.171875); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 4); GameTextForPlayer(playerid, "~w~F.B.I. ~r~HQ", 1000, 1); } if(IsPlayerInRangeOfPoint(playerid, 3, 2166.2742,-1671.5643,15.0739)) // CRACK HOUSE { SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,5); GameTextForPlayer(playerid, "~g~Casa~w~de Droguri",5000,1); } if(PlayerToPoint(5, playerid, 288.745971,169.350997,1007.171875) && GetPlayerVirtualWorld(playerid) == 4) { SetPlayerPos(playerid, 2387.9207,2465.9854,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas", 1000, 1); PlayerInfo[playerid][pLocal] = 0; } if(PlayerToPoint(5, playerid, 288.745971,169.350997,1007.171875) && GetPlayerVirtualWorld(playerid) != 4) // F.B.I. EXIT { SetPlayerPos(playerid, 1778.2577,-1663.2786,14.4362); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); PlayerInfo[playerid][pLocal] = 0; } new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); if(vehicleid >= Curier[0] && vehicleid <= Curier[14]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Gunoier[0] && vehicleid <= Gunoier[20]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Fermier[0] && vehicleid <= Fermier[11]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Spalator[0] && vehicleid <= Spalator[14]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Cariera[0] && vehicleid <= Cariera[5]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } new tir = GetPlayerVehicleID(playerid); if(tir >= Tirr[0] && tir <= Tirr[16]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; DestroyVehicle(Trailer[playerid]); JobStep[playerid] = 0; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { //printf("Bizz :%d",i); if (PlayerToPoint(3, playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bExitX], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitY], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitZ])) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceX],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceY],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid, 0); } } } } if(newkeys == KEY_SUBMISSION && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return 1; new sendername[MAX_PLAYER_NAME]; //if(IsAnOwnableMoto(GetPlayerVehicleID(playerid)) && CarInfo[GetPlayerVehicleID(playerid)][cOwned] == 0 || IsAnOwnableCar(GetPlayerVehicleID(playerid)) && CarInfo[GetPlayerVehicleID(playerid)][cOwned] == 0) //return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Engine: {FFFFFF}Nu ai cheile acestei masini..."); if(IsPlayerConnected(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { return 1; } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509) { return 1; } new Float:vehhealth; new vid = GetPlayerVehicleID(playerid); GetVehicleHealth(GetPlayerVehicleID(playerid), vehhealth); GetPlayerName(playerid, sendername, sizeof(sendername)); if(EngineSTATE[vid] == 0) { if(undercover[playerid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; format(string, sizeof(string), "* %s baga cheile in contact si porneste motorul.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(undercover[playerid] == 1) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; format(string, sizeof(string), "* Un [Necunoscut] baga cheile in contact si porneste motorul."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else { if(undercover[playerid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; format(string, sizeof(string), "* %s opreste motorul.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(undercover[playerid] == 1) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; format(string, sizeof(string), "* Un [Necunoscut] opreste motorul."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } } return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?:Sincer nu
  21. Nu, dar am rezolvat
  22. La fel, tot nu apar casele
×
×
  • 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.