-
Posts
84 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Posts posted by GenOxigen
-
-
pai cum vrei sa te ajutam daca nu ne dai macar ip sau ce gm este
-
-
-
lasami ip de la sv
-
Ce gm folosesti?
-
Mai im 2 erori
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(22177) : warning 219: local variable "params" shadows a variable at a preceding level C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(22219) : warning 219: local variable "params" shadows a variable at a preceding level C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55504) : warning 219: local variable "string" shadows a variable at a preceding level C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55508) : error 035: argument type mismatch (argument 1) C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55511 -- 55513) : error 006: must be assigned to an array C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(66692) : warning 203: symbol is never used: "params" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
-
Spune ce erori iti da
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55500) : error 017: undefined symbol "setemail" C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55502) : warning 219: local variable "string" shadows a variable at a preceding level C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55506) : error 017: undefined symbol "params" C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55509) : error 017: undefined symbol "pEmail" C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55509 -- 55511) : error 006: must be assigned to an array C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55516) : warning 225: unreachable code C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55500) : warning 203: symbol is never used: "CMD" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
-
-
Mda imi da o eroare care nui dau de cap
C:UsersJorjDesktopsaints v1.3gamemodessaints.pwn(2714) : error 017: undefined symbol "ReturnUserEx"
C:UsersJorjDesktopsaints v1.3gamemodessaints.pwn(12491) : warning 217: loose indentationC:UsersJorjDesktopsaints v1.3gamemodessaints.pwn(12485) : warning 204: symbol is assigned a value that is never used: "string3"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error. -
MIE IMI DA ERORI
-
Descriere tutorial:As dori comanda /lideri in care sa apara lideri in dialog si sa arate cati membri sunt in factiune.
ex Politia Romana - Lideri:Alexandru2013 Membri 0/7
-
Multumesc mult T/C
-
eu vreau sa isi stearga acel player care scrie comanda.
-
up tot nu merge
-
Descriere tutorial:Salut va rog sa imi faceti o comanda in care daca esti in factiunea nr 17 sa iti poti sterge singur wanted
-
else if(CP[playerid]==80) { DisablePlayerCheckpoint(playerid); }
if(newcar == examc) { if(TakingLesson[playerid] == 1) { KillTimer(dmvtimer1); DMVCountDown(playerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Ai la dispozitie {00bfff}350 {FFFFFF}secunde."); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Condu cu grija pe partea Dreapta si ai grija sa nu ciocnesti vehiculul."); CP[playerid] = 100; SetPlayerCheckpoint(playerid, 1214.5389,-1842.1859,13.3828, 5.0); } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar acest Vehicul este doar pentru cei care dau {00bfff}Scoala de Soferi{FFFFFF}."); RemovePlayerFromVehicle(playerid); } }
Dar acesta e bine?
-
Nimik doar am bagat aces dmv si am vrut sal testezi si dupa primu checkpoint nu mai apare nici unu
-
Problema intalnita (descriere):Folosesc gm pro gaming,dupa ca trec la traseu dupa primu checkpoint nu mai apare nici unulEro(area / rile) / warning-(ul / urile):-Liniile de cod / sursa / script-ul(obligatoriu):Imagini / Video (optional):Ati incercat sa rezolvati singur?:
forward dmventercartimer(playerid); forward DMVCountDown(playerid); forward DMVTest1(playerid); forward DMVTest2(playerid); forward DMVTest3(playerid); forward DMVTest4(playerid); new dmvtimer1; new dmvcount = 350; // Timp Limita new dmvcounttimer; new DMVPrepare[MAX_PLAYERS]; new DMVT[MAX_PLAYERS]; //============================================================================================================================================================= // Scoala de Soferi //============================================================================================================================================================= else if(CP[playerid]==80) { DisablePlayerCheckpoint(playerid); } else if(CP[playerid] == 99) { DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } else if(CP[playerid] == 100) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,303.8098,-1486.1217,24.3288,5.0); CP[playerid] = 101; } else if(CP[playerid] == 101) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,321.0405,-1487.5698,24.3971,5.0); CP[playerid] = 102; } else if(CP[playerid] == 102) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,332.4004,-1521.7406,35.5935,5.0); CP[playerid] = 103; } else if(CP[playerid] == 103) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,341.8365,-1646.9440,32.8328,5.0); CP[playerid] = 104; } else if(CP[playerid] == 104) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,611.5352,-1678.9283,15.7199,5.0); CP[playerid] = 105; } else if(CP[playerid] == 105) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,659.9307,-1589.2667,14.3100,5.0); CP[playerid] = 106; } else if(CP[playerid] == 106) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,851.0598,-1603.4723,13.1174,5.0); CP[playerid] = 107; } else if(CP[playerid] == 107) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,920.1339,-1494.7328,13.1081,5.0); CP[playerid] = 108; } else if(CP[playerid] == 108) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,945.0980,-1263.6965,15.2321,5.0); CP[playerid] = 109; } else if(CP[playerid] == 109) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,965.0189,-1035.6516,29.8217,5.0); CP[playerid] = 110; } else if(CP[playerid] == 110) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,898.0035,-974.9957,37.1853,5.0); CP[playerid] = 111; } else if(CP[playerid] == 111) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,703.0262,-1111.0601,17.9237,5.0); CP[playerid] = 112; } else if(CP[playerid] == 112) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,497.5240,-1272.5004,15.4058,5.0); CP[playerid] = 113; } else if(CP[playerid] == 113) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,292.2589,-1401.1156,13.5513,5.0); CP[playerid] = 114; } else if(CP[playerid] == 114) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,154.2040,-1542.7086,10.3029,5.0); CP[playerid] = 115; } else if(CP[playerid] == 115) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,167.0166,-1550.6135,11.5100,5.0); CP[playerid] = 116; } else if(CP[playerid] == 116) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,224.2065,-1516.2754,18.7458,5.0); CP[playerid] = 117; } else if(CP[playerid] == 117) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,308.3261,-1587.0647,32.7494,5.0); CP[playerid] = 118; } else if(CP[playerid] == 118) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,346.6926,-1501.1737,35.5951,5.0); CP[playerid] = 119; } else if(CP[playerid] == 119) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,302.8965,-1485.9672,24.3268,5.0); CP[playerid] = 120; } else if(CP[playerid] == 120) { new currentveh; currentveh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehicleToRespawn(currentveh); } DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pCarLic] = 1; GivePlayerCash(playerid,-700); TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Felicitari, ai trecut testul cu brio. Ai grjia!"); CP[playerid] = 0; KillTimer(dmvcounttimer); } if(newcar == examc) { if(TakingLesson[playerid] == 1) { KillTimer(dmvtimer1); DMVCountDown(playerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Ai la dispozitie {00bfff}350 {FFFFFF}secunde."); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Condu cu grija pe partea Dreapta si ai grija sa nu ciocnesti vehiculul."); CP[playerid] = 100; SetPlayerCheckpoint(playerid, 303.8098,-1486.1217,24.3288,5.0); } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar acest Vehicul este doar pentru cei care dau {00bfff}Scoala de Soferi{FFFFFF}."); RemovePlayerFromVehicle(playerid); } } if(DMVPrepare >= 1) { DMVPrepare += 1; if(DMVPrepare == 3) { ClearChatbox(i, 10); TogglePlayerControllable(i, 0); SendClientMessage(i, COLOR_LIGHTBLUE, " Introducere"); SendClientMessage(i, COLOR_GREEN, ""); SendClientMessage(i, 0xFFD700FF, "» Salut, si bine ai venit la Scoala de soferi."); SendClientMessage(i, 0xFFD700FF, "» Pentru a lua Permisu de Conducere trebuie sa dai Sala si Oras."); SendClientMessage(i, 0xFFD700FF, "» Acuma iti vom arata un mic regulament din circulatie si niste informatii."); SendClientMessage(i, 0xFFD700FF, "» Vor fi 4 variante, raspundeti cu (A,B,C sau D), care credeti ca este corect."); } else if(DMVPrepare == 7) { ClearChatbox(i, 10); SendClientMessage(i, COLOR_LIGHTBLUE, " Regulament si Informatii"); SendClientMessage(i, COLOR_GREEN, ""); SendClientMessage(i, 0xFFD700FF, "» Nu aveti voie sa conduceti cu o viteza mare, riscati sa luati amenda."); SendClientMessage(i, 0xFFD700FF, "» Aveti voie sa conduceti doar pe banda cea mai apropiata de trotuar."); SendClientMessage(i, 0xFFD700FF, "» Nu aveti voie sa fugiti de politie, daca va cere un politai sa opriti, trageti pe partea dreapta."); SendClientMessage(i, 0xFFD700FF, "» Daca cineva va fura vehiculul sunati la politie (/call 911)."); SendClientMessage(i, 0xFFD700FF, "» Nu aveti voie sa folositi NOS, este ilegal, daca veti fi prins riscati sa luati amenda plus confiscarea Vehiculului."); SendClientMessage(i, 0xFFD700FF, "» Nu aveti voie sa faceti Curse ilegale, daca vei fi prins poti fi arestat, iar vehiculul ti se va confisca."); SendClientMessage(i, 0xFFD700FF, "» Nu aveti voie sa lasati Vehiculul in strada, daca vei fi prins poti fi arestat."); SendClientMessage(i, 0xFFD700FF, "» Asta a fost tot! Acuma vei da Sala, fi atent."); DMVPrepare = 0; SetTimerEx("DMVTest1", 10000, 0, "d", i); } } if(strcmp(cmd, "/permis", true) == 0) { if(PlayerToPoint(5.0,playerid,1412.0840,-1701.5978,13.5395)) { if(GetPlayerMoney(playerid) >= 700) { if(PlayerInfo[playerid][pCarLic] == 0) { if(DMVPrepare[playerid] == 0) { DMVPrepare[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar deja dai Scoala de Soferi."); } } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar deja ai Scoala de Soferi." ); } } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar nu ai suficienti banii."); } } } if(DMVT[playerid] > 0) { new idx; tmp = strtok(text, idx); if(DMVT[playerid] == 1) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns corect, trecem la urmatoarea Intrebare."); SetTimerEx("DMVTest2", 5000, 0, "d", playerid); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," De cate puncte ai nevoie in Viata Reala sa iei Permisu?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Intre 22 si 26 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» B: Intre 14 si 21 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» C: Intre 12 si 19 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» D: Intre 10 si 15 puncte."); } } if(DMVT[playerid] == 2) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns corect, trecem la urmatoarea Intrebare."); SetTimerEx("DMVTest3", 5000, 0, "d", playerid); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Ce faci daca cineva iti fura Vehiculul?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Fug dupa el si il bat."); SendClientMessage(playerid, 0xFFD700FF, "» B: Merg pe jos, si il las in pace."); SendClientMessage(playerid, 0xFFD700FF, "» C: Caut alt vehicul si il fur."); SendClientMessage(playerid, 0xFFD700FF, "» D: Sun la Politie (/call 911)."); } } if(DMVT[playerid] == 3) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns corect, trecem la urmatoarea Intrebare."); SetTimerEx("DMVTest4", 5000, 0, "d", playerid); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Cand poti conduce pe partea stanga?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Cand drumul de pe partea dreapta este blocat."); SendClientMessage(playerid, 0xFFD700FF, "» B: Cand este o coada mare in fata mea, si intru in depasire."); SendClientMessage(playerid, 0xFFD700FF, "» C: Cand vreau eu."); SendClientMessage(playerid, 0xFFD700FF, "» D: Cand este ceata in fata."); } } if(DMVT[playerid] == 4) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns corect, ai trecut Sala cu Brio, acuma urmeaza Orasu."); SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Urca-te intr-un Vehicul de afara si dute dupa Checkpoint-uri."); TogglePlayerControllable(playerid, 1); DMVT[playerid] = 0; TakingLesson[playerid] = 1; return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Raspuns gresit, ne pare rau dar ai picat testul."); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Cand ai voie sa faci DB (Drive-By)?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Cand vreau eu."); SendClientMessage(playerid, 0xFFD700FF, "» B: Cand este cineva in fata mea."); SendClientMessage(playerid, 0xFFD700FF, "» C: Nu am voie sa fac Drive-By."); SendClientMessage(playerid, 0xFFD700FF, "» D: Cand cineva ma ataca."); } } } public DMVTest1(playerid) { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," De cate puncte ai nevoie in Viata Reala sa iei Permisu?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Intre 22 si 26 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» B: Intre 14 si 21 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» C: Intre 12 si 19 puncte."); SendClientMessage(playerid, 0xFFD700FF, "» D: Intre 10 si 15 puncte."); DMVT[playerid] = 1; } public DMVTest2(playerid) { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Ce faci daca cineva iti fura Vehiculul?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Fug dupa el si il bat."); SendClientMessage(playerid, 0xFFD700FF, "» B: Merg pe jos, si il las in pace."); SendClientMessage(playerid, 0xFFD700FF, "» C: Caut alt vehicul si il fur."); SendClientMessage(playerid, 0xFFD700FF, "» D: Sun la Politie (/call 911)."); DMVT[playerid] = 2; } public DMVTest3(playerid) { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Cand poti conduce pe partea stanga?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Cand drumul de pe partea dreapta este blocat."); SendClientMessage(playerid, 0xFFD700FF, "» B: Cand este o coada mare in fata mea, si intru in depasire."); SendClientMessage(playerid, 0xFFD700FF, "» C: Cand vreau eu."); SendClientMessage(playerid, 0xFFD700FF, "» D: Cand este ceata in fata."); DMVT[playerid] = 3; } public DMVTest4(playerid) { SendClientMessage(playerid,COLOR_LIGHTBLUE," Intrebare"); SendClientMessage(playerid,COLOR_WHITE," Cand ai voie sa faci DB (Drive-By)?"); SendClientMessage(playerid, 0xFFD700FF, "» A: Cand vreau eu."); SendClientMessage(playerid, 0xFFD700FF, "» B: Cand este cineva in fata mea."); SendClientMessage(playerid, 0xFFD700FF, "» C: Nu am voie sa fac Drive-By."); SendClientMessage(playerid, 0xFFD700FF, "» D: Cand cineva ma ataca."); DMVT[playerid] = 4; } public dmventercartimer(playerid) { TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTRED,"{30a030}[ProGaming]: {FFFFFF}Ne pare rau, dar ai picat testul (Trebuie sa te urci in Vehicul pentru a da Orasu)."); } public DMVCountDown(playerid) { if(dmvcount <= -0) { GameTextForPlayer(playerid,"~r~ Ai picat Testul, deoarece au trecut ~n~Cele ~g~350 ~r~secunde", 5000, 3); KillTimer(dmvcounttimer); new currentveh; currentveh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehicleToRespawn(currentveh); } TakingLesson[playerid] = 0; dmvcount = 350; return 1; } return 1; }
-
Poftim:
public OnPlayerText(playerid, text[]) { new giver[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new tmp[256]; new string[512]; new giveplayerid; if ( !strlen ( text ) ) return 0; if(ReactionState == R_STATE_ACTIVE) { if(!strcmp(text, ReactionString, false)) { ReactionState = R_STATE_NOT_ACTIVE; GetPlayerName(playerid,giveplayer,MAX_PLAYER_NAME); format(string,sizeof(string),"%s a castigat eventul rapid si a primit {87CEFA}%s${FFFFFF}!",giveplayer,FormatNumber(ReactionCash)); SendClientMessageToAll(-1,string); GivePlayerCash(playerid, ReactionCash); ReactionCash = 0; } } if(GoIP(text)) { new reclama[MAX_PLAYER_NAME]; GetPlayerName(playerid, reclama, sizeof(reclama)); format(string, sizeof(string), "ADMIN INFO: %s a primit kick de la Admin-Bot, motiv: Reclama",reclama); SendClientMessageToAll(COLOR_LIGHTRED,string); Kick(playerid); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti scrie, ai primit mute!"); return 0; } if(DMVT[playerid] > 0) { new idx; tmp = strtok(text, idx); if(DMVT[playerid] == 1) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Raspuns corect, trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest2", 5000, 0, "d", playerid); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ Intrebare Examen _____"); SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce fac daca vad o masina de politie cu girofarul pornit urmarind un suspect iar eu sunt in masina ?"); SendClientMessage(playerid,COLOR_YELLOW2," A: Opresc masina in pozitia curenta "); SendClientMessage(playerid,COLOR_YELLOW2," B: Ma bag in fata lor "); SendClientMessage(playerid,COLOR_YELLOW2," C: Trag pe dreapta "); SendClientMessage(playerid,COLOR_YELLOW2," D: Ma duc si incerc sa ajut politia "); } } if(DMVT[playerid] == 2) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE," Raspuns corect, trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest3", 5000, 0, "d", playerid); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ Intrebare Examen _____"); SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce pot patesc daca particip intr-o cursa ilegale ?"); SendClientMessage(playerid,COLOR_YELLOW2," A: Nimic,sunt regele soselelor "); SendClientMessage(playerid,COLOR_YELLOW2," B: Pot intra la inchisoare "); SendClientMessage(playerid,COLOR_YELLOW2," C: Imi pot distruge masina si nu pot plati reparatile "); SendClientMessage(playerid,COLOR_YELLOW2," D: Pot sa o castig si sa primesc marele premiu "); } } if(DMVT[playerid] == 3) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Raspuns corect, trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest4", 5000, 0, "d", playerid); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ Intrebare Examen _____"); SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce fac daca cineva imi fura masina ?"); SendClientMessage(playerid,COLOR_YELLOW2," A: Ma duc,il dau jos din masina,il bat si mi-o iau inapoi "); SendClientMessage(playerid,COLOR_YELLOW2," B: Alerg pana gasesc alta si o fur "); SendClientMessage(playerid,COLOR_YELLOW2," C: Sun la politie (( /call 911 )) "); SendClientMessage(playerid,COLOR_YELLOW2," D: Merg pe jos "); } } if(DMVT[playerid] == 4) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Raspuns corect. Ai trecut cu bine examenul scris!"); SendClientMessage(playerid,COLOR_WHITE,"{87CEFA}Examen: {FFFFFF}Urca-te intr-o masina DMV pentru a sustine examenul practic!"); TogglePlayerControllable(playerid, 1); DMVT[playerid] = 0; TakingLesson[playerid] = 1; return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit. Ai picat examenul scris!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ Intrebare Examen _____"); SendClientMessage(playerid,COLOR_LIGHTBLUE," Cand pot conduce pe partea stanga ?"); SendClientMessage(playerid,COLOR_YELLOW2," A: Cand drumul de pe partea dreapta este blocat "); SendClientMessage(playerid,COLOR_YELLOW2," B: Cand vreau "); SendClientMessage(playerid,COLOR_YELLOW2," C: Cand este ceata in fata "); SendClientMessage(playerid,COLOR_YELLOW2," D: Cand este o coada imensa in fata mea si nu vreau sa astept "); } } } if(MarriageCeremoney[playerid] > 0) { new idx; tmp = strtok(text, idx); if ((strcmp("da", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("da"))) { if(GotProposedBy[playerid] < 999) { if(IsPlayerConnected(GotProposedBy[playerid])) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "Preot: %s, o iei in casatorie pe %s? (tasteaza 'da', orice altceva va anula casatoria).", giveplayer,sendername); SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string); MarriageCeremoney[GotProposedBy[playerid]] = 1; MarriageCeremoney[playerid] = 0; GotProposedBy[playerid] = 999; return 1; } else { MarriageCeremoney[playerid] = 0; GotProposedBy[playerid] = 999; return 0; } } else if(ProposedTo[playerid] < 999) { if(IsPlayerConnected(ProposedTo[playerid])) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer)); if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2) { format(string, sizeof(string), "Preot: %s si %s, va declar...sot si sotie, poti saruta mireasa.", sendername, giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "Preot: %s si %s, va declar...sot si sotie, poti saruta mirele.", giveplayer, sendername); SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string); format(string, sizeof(string), "Mariaj: Avem un cuplu nou de indragostiti, %s & %s si-au jurat credinta si dragoste.", sendername, giveplayer); OOCNews(COLOR_WHITE, string); } else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1) { format(string, sizeof(string), "Preot: %s si %s, va declar...sot si sot, poti saruta mireasa.", sendername, giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "Preot: %s si %s, va declar...sot si sot, poti saruta mirele.", giveplayer, sendername); SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string); format(string, sizeof(string), "Mariaj: Avem un cuplu nou gay, %s & %s si-au jurat credinta si dragoste.", sendername, giveplayer); OOCNews(COLOR_WHITE, string); } else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2) { format(string, sizeof(string), "Preot: %s si %s, va declar...sotie si sotie, poti saruta mireasa.", sendername, giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "Preot: %s si %s, va declar...sotie si sotie, poti saruta mirele.", giveplayer, sendername); SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string); format(string, sizeof(string), "Mariaj: Avem un cuplu nou lesbian, %s & %s si-au jurat credinta si dragoste.", sendername, giveplayer); OOCNews(COLOR_WHITE, string); } //MarriageCeremoney[ProposedTo[playerid]] = 1; MarriageCeremoney[ProposedTo[playerid]] = 0; MarriageCeremoney[playerid] = 0; format(string, sizeof(string), "%s", sendername); strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", giveplayer); strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255); GivePlayerCash(playerid, - 100000); PlayerInfo[playerid][pMarried] = 1; PlayerInfo[ProposedTo[playerid]][pMarried] = 1; PlayerInfo[ProposedTo[playerid]][pPhousekey] = PlayerInfo[playerid][pPhousekey]; PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey]; ProposedTo[playerid] = 999; MarriageCeremoney[playerid] = 0; return 1; } else { MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; return 0; } } } else { if(GotProposedBy[playerid] < 999) { if(IsPlayerConnected(GotProposedBy[playerid])) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* Ai refuzat casatoria cu %s, de aceea mariajul a fost anulat.",giveplayer); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "* %s nu doreste sa se casatoreasca cu tine, de aceea mariajul a fost anulat.",sendername); SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string); return 0; } else { MarriageCeremoney[playerid] = 0; GotProposedBy[playerid] = 999; return 0; } } else if(ProposedTo[playerid] < 999) { if(IsPlayerConnected(ProposedTo[playerid])) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* Ai refuzat casatoria cu %s, de aceea mariajul a fost anulat.",giveplayer); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "* %s nu doreste sa se casatoreasca cu tine, de aceea mariajul a fost anulat.",sendername); SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string); return 0; } else { MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; return 0; } } } return 0; } if(WritingPaper[playerid] > 0) { new line; new nstring[256]; new idx; new length = strlen(text); while ((idx < length) && (text[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = text[idx]; idx++; } result[idx - offset] = EOS; result[0] = toupper(result[0]); if(!strlen(result)) { if(WritingLine[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "* Tasteaza titlul ziarului!"); } else { SendClientMessage(playerid, COLOR_LIGHTRED, "* Tasteaza continutul ziarului!"); } return 0; } format(nstring, sizeof(nstring), "%s", text); switch(WritingLine[playerid]) { case 1: { new fstring[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(fstring, sizeof(fstring), "%s", sendername); strmid(PaperInfo[WritingPaperNumber[playerid]][PaperMaker], fstring, 0, strlen(fstring), 255); strmid(PaperInfo[WritingPaperNumber[playerid]][PaperTitle], nstring, 0, strlen(nstring), 255); line = 0; WritingLine[playerid] = 2; SendClientMessage(playerid, COLOR_LIGHTRED, "* Acum poti scrie sub titlu, ti-au ramas 7 linii!"); } case 2: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText1], nstring, 0, strlen(nstring), 255); line = 1; WritingLine[playerid] = 3; } case 3: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText2], nstring, 0, strlen(nstring), 255); line = 2; WritingLine[playerid] = 4; } case 4: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText3], nstring, 0, strlen(nstring), 255); line = 3; WritingLine[playerid] = 5; } case 5: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText4], nstring, 0, strlen(nstring), 255); line = 4; WritingLine[playerid] = 6; } case 6: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText5], nstring, 0, strlen(nstring), 255); line = 5; WritingLine[playerid] = 7; } case 7: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText6], nstring, 0, strlen(nstring), 255); line = 6; WritingLine[playerid] = 8; } case 8: { strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText7], nstring, 0, strlen(nstring), 255); PaperInfo[WritingPaperNumber[playerid]][PaperUsed] = 1; SavePapers(); line = 7; WritingLine[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; } } if(line > 0) { format(string, sizeof(string), "* Ai scris linia %d a ziarului.", line); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(line == 7) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ziarul tau a fost publicat pe lista cu anunturi (pentru Ziaristi)!"); } } return 0; } if(ConnectedToPC[playerid] == 255) { new idx; tmp = strtok(text, idx); if ((strcmp("Contracts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contracts"))) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "Doar asasinii cu rang 4+ pot oferi contracte celorlalti asasini!"); return 0; } SearchingHit(playerid); return 0; } else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News"))) { new x_nr[256]; x_nr = strtok(text, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_YQLMX, "__________________ Hitman Agency News __________________"); SendClientMessage(playerid, COLOR_WHITE, "Tasteaza: News [number] or News delete [number] or News delete all"); format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]); SendClientMessage(playerid, COLOR_GREY, string); SendClientMessage(playerid, COLOR_YQLMX, "________________________________________________________"); return 0; }//lets start if(strcmp(x_nr,"1",true) == 0) { if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; } if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; } if(News[hTaken1] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; } format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255); format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255); News[hTaken1] = 1; PlacedNews[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel."); return 0; } else { SendClientMessage(playerid, COLOR_GREY, " Spot 1 is already Taken !"); return 0; } } else if(strcmp(x_nr,"2",true) == 0) { if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; } if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; } if(News[hTaken2] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; } format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255); format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255); News[hTaken2] = 1; PlacedNews[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel."); return 0; } else { SendClientMessage(playerid, COLOR_GREY, " Spot 2 is already Taken !"); return 0; } } else if(strcmp(x_nr,"3",true) == 0) { if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; } if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; } if(News[hTaken3] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; } format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255); format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255); News[hTaken3] = 1; PlacedNews[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel."); return 0; } else { SendClientMessage(playerid, COLOR_GREY, " Spot 3 is already Taken !"); return 0; } } else if(strcmp(x_nr,"4",true) == 0) { if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; } if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; } if(News[hTaken4] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; } format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255); format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255); News[hTaken4] = 1; PlacedNews[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel."); return 0; } else { SendClientMessage(playerid, COLOR_GREY, " Spot 4 is already Taken !"); return 0; } } else if(strcmp(x_nr,"5",true) == 0) { if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; } if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; } if(News[hTaken5] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; } format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255); format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255); News[hTaken5] = 1; PlacedNews[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel."); return 0; } else { SendClientMessage(playerid, COLOR_GREY, " Spot 5 is already Taken !"); return 0; } } else if(strcmp(x_nr,"delete",true) == 0) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "Iti trebuie rang 4 pentru a putea sterge mesajele de pe canalulu Hitman!"); return 0; } new string1[MAX_PLAYER_NAME]; new x_tel[256]; x_tel = strtok(text, idx); if(!strlen(x_tel)) { SendClientMessage(playerid, COLOR_WHITE, "Tasteaza: News delete [number] or News delete all."); return 0; } if(strcmp(x_tel,"1",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact1], string1, 0, strlen(string1), 255); News[hTaken1] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters un mesaj (1) de pe canalul Hitman Agency!"); return 0; } else if(strcmp(x_tel,"2",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact2], string1, 0, strlen(string1), 255); News[hTaken2] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters un mesaj (2) de pe canalul Hitman Agency!"); return 0; } else if(strcmp(x_tel,"3",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact3], string1, 0, strlen(string1), 255); News[hTaken3] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters un mesaj (3) de pe canalul Hitman Agency!"); return 0; } else if(strcmp(x_tel,"4",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact4], string1, 0, strlen(string1), 255); News[hTaken4] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters un mesaj (4) de pe canalul Hitman Agency!"); return 0; } else if(strcmp(x_tel,"5",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact5], string1, 0, strlen(string1), 255); News[hTaken5] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters un mesaj (5) de pe canalul Hitman Agency!"); return 0; } else if(strcmp(x_tel,"all",true) == 0) { format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact1], string1, 0, strlen(string1), 255); News[hTaken1] = 0; format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact2], string1, 0, strlen(string1), 255); News[hTaken2] = 0; format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact3], string1, 0, strlen(string1), 255); News[hTaken3] = 0; format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact4], string1, 0, strlen(string1), 255); News[hTaken4] = 0; format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255); format(string1, sizeof(string1), "Nu exista"); strmid(News[hContact5], string1, 0, strlen(string1), 255); News[hTaken5] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sters toate mesajele noi de pe canalul Hitman!"); return 0; } else { SendClientMessage(playerid, COLOR_WHITE, "Tasteaza: News delete [number] or News delete all."); return 0; } } else { return 0; } } else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit"))) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "Iti trebuie rang 4 pentru a oferi contracte asasinilor!"); return 0; } if(hitfound == 0) { SendClientMessage(playerid, COLOR_GREY, "Inca nu ai cautat o tinta, vizualizeaza contractele!"); return 0; } tmp = strtok(text, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "Tasteaza: Givehit [ID/nume jucator]"); return 0; } //giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8) { if(GoChase[giveplayerid] < 999) { SendClientMessage(playerid, COLOR_GREY, "* Acest asasin are deja un contract!"); return 0; } if(IsPlayerConnected(hitid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giver, sizeof(giver)); GetPlayerName(hitid, giveplayer, sizeof(giveplayer)); //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]); //SendClientMessage(playerid, COLOR_YELLOW, string); //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]); //SendClientMessage(giveplayerid, COLOR_YELLOW, string); format(string, sizeof(string), "* Asasin %s i-a oferit lui %s contractul: %s (ID: %d), in valoare de $%s.", sendername, giver, giveplayer, hitid, FormatNumber(PlayerInfo[hitid][pHeadValue])); SendFamilyMessage(8, COLOR_YELLOW, string); new string1[128]; format(string1, sizeof(string1), "Ai primit un contract pe numele lui %s (valoare: $%s) de la %s!", giveplayer, FormatNumber(PlayerInfo[hitid][pHeadValue]), sendername); SCM(giveplayerid, -1, string1); GoChase[giveplayerid] = hitid; GetChased[hitid] = giveplayerid; GotHit[hitid] = 1; hitid = 0; hitfound = 0; return 0; } else { SendClientMessage(playerid, COLOR_GREY, " The Contracted Person is offline, use Contracts in the Portable again !"); return 0; } } else return SCM(playerid, -1, "Acest jucator nu este in Hitman Agency!"); } return 0; } else { SendClientMessage(playerid, COLOR_GREY, "Acest asasin nu este online, sau nu este in Hitman Agency!"); return 0; } } else if ((strcmp("Ranks", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks"))) { SendClientMessage(playerid, COLOR_YQLMX, "_________________Rang agenti: __________________"); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 8||PlayerInfo[pLeader] == 8) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* %s | Rang: %d", giveplayer,PlayerInfo[pRank]); SendClientMessage(playerid, COLOR_GREY, string); } } } } else if ((strcmp("Order", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Order"))) { if(OrderReady[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, "Ai comandat deja un pachet, du-te in fata usii HQ-ului pentru a-l primi!"); return 0; } tmp = strtok(text, idx); if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1"))) { if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 4999) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 1 (5.000$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 1; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2"))) { if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 5999) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 2 (6.000$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 2; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3"))) { if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 5999) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 3 (6.000$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 3; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4"))) { if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 7999) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 4 (8.000$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 4; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5"))) { if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 7999) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 5 (8.000$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 5; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6"))) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 8499) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 6 (8.500$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 6; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7"))) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "Rangul tau este prea mic pentru a achizitiona acest pachet de arme!"); return 0; } if(GetPlayerCash(playerid) > 8499) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai comandat pachetul 7 (8.500$), acesta va fi livrat in fata usii HQ-ului!"); OrderReady[playerid] = 7; return 0; } else { SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !"); return 0; } } else { SendClientMessage(playerid, COLOR_YQLMX, "__________________ Available Packages __________________"); if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($5000 ) Rang 1 - 5: Cutit, Desert Eagle, MP5, Shotgun"); } if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($6000 ) Rang 2 - 5: Cutit, Desert Eagle, M4, MP5, Shotgun"); } if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($6000 ) Rang 2 - 5: Cutit, Desert Eagle, AK47, MP5, Shotgun"); } if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($8000) Rang 3 - 5: Cutit, Desert Eagle, M4, MP5, Shotgun, Sniper"); } if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($8000) Rang 3 - 5: Cutit, Desert Eagle, AK47, MP5, Shotgun, Sniper"); } if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($8500) Rang 4 - 5: Cutit, Desert Eagle, M4, MP5, Shotgun, Sniper"); } if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) ($8500) Rang 4 - 5: Cutit, Desert Eagle, AK47, MP5, Shotgun, Sniper"); } SendClientMessage(playerid, COLOR_YQLMX, "________________________________________________________"); return 0; } } else if ((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout"))) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai inchis laptopul, si te-ai deconectat de la agentie!"); ConnectedToPC[playerid] = 0; return 0; } else { SendClientMessage(playerid, COLOR_YQLMX, "___ Hitman Agency ___"); SendClientMessage(playerid, COLOR_YELLOW2, "| - News"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Contracts"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Givehit"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Order"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Ranks"); SendClientMessage(playerid, COLOR_YELLOW2, "| - Logout"); SendClientMessage(playerid, COLOR_YELLOW2, "|"); SendClientMessage(playerid, COLOR_YQLMX, "________________00:00|"); return 0; } return 0; } if(CallLawyer[playerid] == 111) { new idx; tmp = strtok(text, idx); if ((strcmp("da", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("da"))) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "** %s este in puscarie, si are nevoie de un avocat. Du-te in sectia de politie LSPD.", sendername); SendJobMessage(2, TEAM_AZTECAS_COLOR, string); SendJobMessage(2, TEAM_AZTECAS_COLOR, "* Cand ajungi in sectie, vorbeste cu un politist pentru a-ti da /accept lawyer!"); SendClientMessage(playerid, COLOR_LIGHTRED, "Un mesaj a fost trimis catre toti avocatii online, asteapta o confirmare!"); WantLawyer[playerid] = 0; CallLawyer[playerid] = 0; return 0; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu este niciun avocat disponibil acum! Sentinta va fi ispasita!"); WantLawyer[playerid] = 0; CallLawyer[playerid] = 0; return 0; } } if(TalkingLive[playerid] != 255) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pJob] == 6) { format(string, sizeof(string), "Reporter %s: %s", sendername, text); OOCNews(COLOR_LIGHTGREEN, string); } else { format(string, sizeof(string), "Intervievat %s: %s", sendername, text); OOCNews(COLOR_LIGHTGREEN, string); } return 0; } if(Mobile[playerid] != 255) { new idx; tmp = strtok(text, idx); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Spune (telefon): %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); //printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid); if(Mobile[playerid] == 914) { if(!strlen(tmp)) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispecer: Imi pare rau, dar nu inteleg mesajul dvs."); return 0; } new turner[MAX_PLAYER_NAME]; new wanted[128]; GetPlayerName(playerid, turner, sizeof(turner)); SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispecer: Am alertat un echipaj de ambulanta din orasul Los Santos!"); SendClientMessage(playerid, TEAM_CYAN_COLOR, "Multumim pentru raportarea acestui incident"); format(wanted, sizeof(wanted), "Dispecer: Toate unitatile: Apelant: %s",turner); SendTeamBeepMessage(1, TEAM_CYAN_COLOR, wanted); format(wanted, sizeof(wanted), "Dispecer: Incident: %s",text); SendTeamMessage(1, TEAM_CYAN_COLOR, wanted); SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; } if(Mobile[playerid] == 913) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ALLDEPT, "Dispecer: Imi pare rau, dar nu inteleg mesajul dvs."); return 0; } if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no"))) { new turner[MAX_PLAYER_NAME]; new wanted[128]; GetPlayerName(playerid, turner, sizeof(turner)); SendClientMessage(playerid, COLOR_DBLUE, "Dispecer: Am alertat toate echipajele de politie din orasul Los Santos."); SendClientMessage(playerid, COLOR_DBLUE, "Multumim pentru raportarea acestei infractiuni!"); format(wanted, sizeof(wanted), "Dispecer: Toate unitatile APB: Reclamant: %s",turner); SendEnemyMessage(TEAM_BLUE_COLOR, string); format(wanted, sizeof(wanted), "Dispecer: Infractiune: %s, Suspect: Necunoscut",PlayerCrime[playerid][pAccusing]); SendEnemyMessage(TEAM_BLUE_COLOR, string); SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; } new badguy; //badguy = strval(tmp); badguy = ReturnUser(tmp); if (IsPlayerConnected(badguy)) { if(badguy != INVALID_PLAYER_ID) { if (IsACop(badguy)) { SendClientMessage(playerid, COLOR_DBLUE, "Dispecer: Nu incerca sa ne induci in eroare! Aceasta este o linie de urgenta!"); SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; } if (WantedLevel[badguy] > 0) { SendClientMessage(playerid, COLOR_DBLUE, "Dispecer: Agentii de politie lucreaza deja la acest caz."); SendClientMessage(playerid, COLOR_DBLUE, "Multumim pentru efortul de a raporta aceasta infractiune."); SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; } if (badguy == playerid) { SendClientMessage(playerid, COLOR_DBLUE, "Dispecer: Nu incerca sa ne induci in eroare! Aceasta este o linie de urgenta!"); SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; } SendClientMessage(playerid, COLOR_DBLUE, "Dispecer: Am alertat toate echipajele de politie din orasul Los Santos."); SendClientMessage(playerid, COLOR_DBLUE, "Multumim pentru raportarea acestei infractiuni."); SetPlayerCriminal(badguy,playerid, PlayerCrime[playerid][pAccusing]); if(WantedLevel[badguy] > 0) { } else { WantedLevel[badguy] += 2; } SendClientMessage(playerid, COLOR_GRAD2, "Dispecerul a inchis apelul."); Mobile[playerid] = 255; return 0; }//invalid id return 0; }//not connected else { format(string, sizeof(string), "Dispecer: Acest nume (%s) nu exista in baza de date, sunteti sigur ca este scris corect?",tmp); SendClientMessage(playerid, COLOR_DBLUE, string); return 0; } } if(Mobile[playerid] == 912) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?"); return 0; } strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255); SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: If you know the assailant's name or part of it say it now or just say no."); Mobile[playerid] = 913; return 0; } if(Mobile[playerid] == 911) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand, police or paramedic?"); return 0; } else if ((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police"))) { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Police HQ, please hold."); Mobile[playerid] = 912; SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: Please give me a short description of the crime."); return 0; } else if ((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic"))) { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Paramedic HQ, please hold."); Mobile[playerid] = 914; SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Please give me a short description of the Incident."); return 0; } else { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand, police or paramedic?"); return 0; } } if(IsPlayerConnected(Mobile[playerid])) { if(Mobile[Mobile[playerid]] == playerid) { SendClientMessage(Mobile[playerid], COLOR_YELLOW,string); } } else { SendClientMessage(playerid, COLOR_YELLOW,"Theres nobody there"); } return 0; } if (realchat) { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pAdmin] >= 1) { new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, COLOR_LIGHTBLUE, TEAM_GROVE_COLOR, 0x008100AA }; SetPlayerChatBubble(playerid, text, Colors[random(sizeof(Colors))], 50.0, 10000); } if(GoIP(text)) { new reclama[MAX_PLAYER_NAME]; GetPlayerName(playerid, reclama, sizeof(reclama)); format(string, sizeof(string), "ADMIN INFO: %s a primit kick de la Admin-Bot, motiv: Reclama",reclama); SendClientMessageToAll(COLOR_LIGHTRED,string); Kick(playerid); return 1; } for(new i; i < sizeof(TLD); i++) { if(strfind(text, TLD, true) != -1) { if(strfind(text, "www.rgaming.ro", true) != -1 || strfind(text, "realgaming.ro", true) != -1 || strfind(text, "rgaming.ro", true) != -1 || strfind(text, "rpg.rgaming.ro") != -1) break; new reclama[MAX_PLAYER_NAME]; GetPlayerName(playerid, reclama, sizeof(reclama)); format(string, sizeof(string), "ADMIN INFO: %s a primit kick de la Admin-Bot, motiv: Reclama",reclama); SendClientMessageToAll(COLOR_LIGHTRED,string); Kick(playerid); return 1; } } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s spune: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 0; } printf("[DEBUG]: #OnPlayerText"); return 1; }
-
Descriere tutorial :Salut sunt Oxigen si vreau sa ma ajutati cu un sistem de masini dupa tutorial ca pe b-zone numai ca eu vreau dupa ce se inregistreaza sa primeasca un faggio.
-
Descriere tutorial:Este un sistem care poti seta unu admin agent pe chat /a /ooc un script pe nume de ex el are admin 4 dar pot sai scriu lui Fondator dar la alt admin de admin 4 ii pot scrie Drifter...
-
Numi da eroare imi da close pawno si numi da raspuns adica daca sa complicat sau daca are erori fac o poza?
-
Problema intalnita (descriere):Cand adaug comanda aceasta
if(strcmp(cmd, "/factiuni", true) == 0) { if(IsPlayerConnected(playerid)) { ShowPlayerDialog(playerid,13310,DIALOG_STYLE_MSGBOX,"Factiuni:","{0080C0}1.Politia Romana Recruteaza {FFFF00}Minim Level 7n{0080C0}2.Serviciul Roman de Informatii {FFFF00}Recruteaza Minim Level 7n{0080C0}3.Armata Romana {FFFF00}Recruteaza Minim Level 7n{FF0000}4.S.M.U.R.D {FFFF00}Recruteaza Minim Level 3n{C4C43C}5.Guvern {FFFF00}Recruteaza Minim Level 3n{15EABF}6.School Instructor {FFFF00}Recruteaza Minim Level 3n{800000}7.Hitman Agency {FFFF00}Recruteaza Minim Level 4n{80FFFF}8.News Reporter {FFFF00}Recruteaza Minim Level 3n{FFFF80}9.Remorcari Auto {FFFF00}Recruteaza Minim Level 3n{FFFF00}10.Clanul Sadoveanu{FFFF00} Recuteaza Minim Level 5n{FFFF00}11.Taximentrist {80FF00}Recruteaza Minim Level 3n{FF00FF}12.Clanul Capone {80FF00}Recruteaza Minim Level 5n{FF8000}13.Clanul Duduianu {80FF00}Recruteaza Minim Level 5n{800000}14.Clanul Corsicanu {80FF00}Recruteaza Minim Level 5n{C0C0C0}15.Clanul Tobosaru {80FF00}Recruteaza Minim Level 5n{000000}16.Clanul Camataru {80FF00}Recruteaza minim Level 5n{008040}18.Total Security {80FF00}Recruteaza Minim Level 4 ","Ok",""); } return 1; }
Si nu mi se complica
Ero(area / rile) / warning-(ul / urile):Nu se complica
Liniile de cod / sursa / script-ul(obligatoriu):am dat mai sus
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da -
culorile la admin chat si la assitenten chat si ooc
1 eroare
in Arhivă probleme
Posted
Problema intalnita (descriere): Am adaugat cmd lideri din tutorialul acesta:
Ero(area / rile) / warning-(ul / urile):C:UsersJorjDesktopsaints v1.3gamemodessaints.pwn(2726) : error 035: argument type mismatch (argument 1)
Liniile de cod / sursa / script-ul(obligatoriu):Sunt puse in tutorial
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Am incercat dar nam reusit