Serafim
Membru-
Posts
25 -
Joined
-
Last visited
Recent Profile Visitors
393 profile views
Serafim's Achievements
-
Problemă întâlnită (descriere): Cand dau G/F la masina de Politie imi da wanted Ero(area / rile) / warning-(ul / urile): Cereti ce sa va dau. Liniile de cod / sursa / script-ul: Imagini / Video (optional): Aţi încercat să rezolvaţi singur?: Nu, nu stiu ce trebuie editat.
-
Cam asa merg si eu, iti propun sa faci cum a zis si WiDuAlK.SaMp
-
Cand Un Politist Omoara Pe Cineva, Ii Da Wanted
Serafim replied to Serafim's question in Arhivă probleme
Am rezolvat, nu mai da wanted. Dar.. imi scrie ca am comis o crima, crima mea a fost raportata dar wanted nu am, si nu apar pe /wanted. Dar ma enerveaza ca scrie ca am comis o crima, m-ar putea ajuta cineva sa o sterg? -
Cand Un Politist Omoara Pe Cineva, Ii Da Wanted
Serafim replied to Serafim's question in Arhivă probleme
Acceasi problema, tot se pune wanted cand il omor [pawn] if(PlayerData[killerid][pMember] != 1 || PlayerData[killerid][pLeader] != 1 || PlayerData[killerid][pMember] != 2 || PlayerData[killerid][pLeader] != 2 || PlayerData[killerid][pMember] != 3 || PlayerData[killerid][pLeader] != 3)[/pawn] -
Cand Un Politist Omoara Pe Cineva, Ii Da Wanted
Serafim replied to Serafim's question in Arhivă probleme
Am modificat si tot asa imi da if(PlayerData[killerid][pMember] != 1) P.S: Am PlayerData nu PlayerInfo -
Cand Un Politist Omoara Pe Cineva, Ii Da Wanted
Serafim replied to Serafim's question in Arhivă probleme
[pawn]if(victimteam >= 4) { if(IsPlayerConnected(killerid)) { new slice = 100; //100$ playercash = GetPlayerCash(playerid); if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); } if(SafeTime[playerid] <= 0) { if(gTeam[killerid] != gTeam[playerid]) { if(GetPlayerState(killerid) == 1) { PlayerData[killerid][pKills] = PlayerData[killerid][pKills] + 2; } else { PlayerData[killerid][pKills]++; } PlayerData[playerid][pKills]--; format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[playerid][pKills], PlayerData[playerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[killerid][pKills], PlayerData[killerid][pSQLID]); mysql_query(string); } } if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4)) { slice = 0; } if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill { slice = 0; } if (playercash > 0) { //GivePlayerCash(playerid, -slice); } else { slice = slice+500; } PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0); if (((gTeam[killerid]) == 3) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } } else if (victimteam == 2) { if(IsPlayerConnected(killerid)) { PlayerData[playerid][pKills]--; format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[playerid][pKills], PlayerData[playerid][pSQLID]); mysql_query(string); if (gTeam[killerid] == 2)//cops kill cop { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+100);//+100pays hospital bill } if (gTeam[killerid] >= 3) { WantedPoints[killerid] += 2; //+ 2 wanted points PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); if(reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0) { if(GetPlayerState(killerid) == 1) { PlayerData[killerid][pKills] = PlayerData[killerid][pKills]+2; } else { PlayerData[killerid][pKills]++; } WantedPoints[killerid]+=2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[killerid][pKills], PlayerData[killerid][pSQLID]); mysql_query(string); } } } else if (victimteam == 3) { if(IsPlayerConnected(killerid)) { if ((gTeam[killerid]) == 2)//cops kill civ { if(WantedLevel[playerid] < 1) { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } } else { WantedPoints[killerid] += 2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); } if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } } else if (victimteam == 1) { if(IsPlayerConnected(killerid)) { if ((gTeam[killerid]) == 2)//cops kill civ { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } else if ((gTeam[killerid]) == 1)//med kill civ { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } if (((gTeam[killerid]) == 4) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor calificat"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } }[/pawn] http://pastebin.com/Kx5z624z -
Cand Un Politist Omoara Pe Cineva, Ii Da Wanted
Serafim replied to Serafim's question in Arhivă probleme
EDIT: [pawn]if(victimteam >= 4) { if(IsPlayerConnected(killerid)) { new slice = 100; //100$ playercash = GetPlayerCash(playerid); if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); } if(SafeTime[playerid] <= 0) { if(gTeam[killerid] != gTeam[playerid]) { if(GetPlayerState(killerid) == 1) { PlayerData[killerid][pKills] = PlayerData[killerid][pKills] + 2; } else { PlayerData[killerid][pKills]++; } PlayerData[playerid][pKills]--; format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[playerid][pKills], PlayerData[playerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[killerid][pKills], PlayerData[killerid][pSQLID]); mysql_query(string); } } if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4)) { slice = 0; } if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill { slice = 0; } if (playercash > 0) { //GivePlayerCash(playerid, -slice); } else { slice = slice+500; } PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0); if (((gTeam[killerid]) == 3) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } } else if (victimteam == 2) { if(IsPlayerConnected(killerid)) { PlayerData[playerid][pKills]--; format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[playerid][pKills], PlayerData[playerid][pSQLID]); mysql_query(string); if (gTeam[killerid] == 2)//cops kill cop { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+100);//+100pays hospital bill } if (gTeam[killerid] >= 3) { WantedPoints[killerid] += 2; //+ 2 wanted points PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); if(reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0) { if(GetPlayerState(killerid) == 1) { PlayerData[killerid][pKills] = PlayerData[killerid][pKills]+2; } else { PlayerData[killerid][pKills]++; } WantedPoints[killerid]+=2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET Kills='%d' WHERE id=%d", PlayerData[killerid][pKills], PlayerData[killerid][pSQLID]); mysql_query(string); } } } else if (victimteam == 3) { if(IsPlayerConnected(killerid)) { if ((gTeam[killerid]) == 2)//cops kill civ { if(WantedLevel[playerid] < 1) { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } } else { WantedPoints[killerid] += 2; PlayerData[killerid][pWantedPoints] = WantedPoints[killerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[killerid][pWantedPoints], PlayerData[killerid][pSQLID]); mysql_query(string); } if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor Calificat"); } else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } } else if (victimteam == 1) { if(IsPlayerConnected(killerid)) { if ((gTeam[killerid]) == 2)//cops kill civ { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } else if ((gTeam[killerid]) == 1)//med kill civ { PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerCash(killerid, -suecost); GivePlayerCash(playerid, suecost+10);//+100pays hospital bill } if (((gTeam[killerid]) == 4) && reason != 49) { SetPlayerCriminal(killerid,255, "Omor calificat"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Lovit si fugit"); } } }[/pawn] http://pastebin.com/Kx5z624z -
Problemă întâlnită (descriere): Cand un politist omoara un civil, sau pe cineva cu wanted, ii da si politistului wanted. Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul: Imagini / Video (optional): Aţi încercat să rezolvaţi singur?: Din pacate nu, folosesc R-GM RPG.
-
Comanda am pus-o la sfarsitul gamemode-ului
-
Problemă întâlnită (descriere): Am incercat sa fac dupa tutorialul lui Maurice, comanda /arrest sa nu mai scriu eu/politistul /arrest cautiune, pret cautiune, timp si etc. Sa se bage automat Ero(area / rile) / warning-(ul / urile): [pawn]C:UsersMihaiDesktoptestR-GM.pwn(64060) : warning 203: symbol is never used: "arrest" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 12624 bytes Code size: 2955292 bytes Data size: 19846624 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements:22830924 bytes 1 Warning. [/pawn] Liniile de cod / sursa / script-ul: http://pastebin.com/4Mr0fBJn Imagini / Video (optional): -- Aţi încercat să rezolvaţi singur?: Am incercat sa modific de la linia "64058" care scrie :[pawn]CMD:arrest(playerid, params[])[/pawn] stiu ca eroarea e la " 64060" dar la linia aia scrie [pawn] new id,amount,time,bail,bailp,string[128],sendername[25],giveplayer[25];[/pawn] Am editat in "arrested" si tot eroarea aia imi dadea doar ca "arrested" la sfarsit.
-
Problemă întâlnită (descriere): /arrest Ero(area / rile) / warning-(ul / urile): As vrea ca atunci cand membrul/liderul PD, S.R.I, Armata sa nu mai scrie /arrest id pret, timp , cautiune , pret cautiune. Sa setez eu din gamemode, sa se dea automat de exemplu : Liniile de cod / sursa / script-ul: http://pastebin.com/LY9YTB13 Imagini / Video (optional): -- Aţi încercat să rezolvaţi singur?: Nu stiu ce sa modific.
-
Da, am schimbat-o si acum merge. M-a ajuta Vanilla ! Asta a zis si el.
-
E cam complicat pentru mine, puteti da t/c
-
Problemă întâlnită (descriere): Comanda /clear [ imi zice Nu esti politist] Ero(area / rile) / warning-(ul / urile): -- Liniile de cod / sursa / script-ul: [pawn] if(strcmp(cmd, "/clear", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2) { if (!PlayerToPoint(3.0, playerid, 253.9280,69.6094,1003.6406)) { SendClientMessage(playerid, COLOR_GRAD2, "Nu esti la sediul politiei!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"{1fab48}» Foloseste: {FFFFFF}/clear [playerid/PartOfName][reason]"); return 1; } giveplayerid = ReturnUser(tmp); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[200]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"{1fab48}» Foloseste: {FFFFFF}/clear [playerid/PartOfName][reason]"); return 1; } if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Nu poti sa iti stergi singur stelele!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* Politistul %s ti-a sters wanted-ul, motiv: %s.", sendername,result); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s i-a sters la %s wanted-ul, motiv: %s.", sendername, giveplayer, result); SendRadioMessage(1, TEAM_BLUE_COLOR, string); SendRadioMessage(2, TEAM_BLUE_COLOR, string); SendRadioMessage(3, TEAM_BLUE_COLOR, string); WantedPoints[giveplayerid] = 0; WantedLevel[giveplayerid] = 0; ClearCrime(giveplayerid); SetPlayerWantedLevel(giveplayerid, 0); PlayerData[giveplayerid][pWantedPoints] = WantedPoints[giveplayerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[giveplayerid][pWantedPoints], PlayerData[giveplayerid][pSQLID]); mysql_query(string); format(string, sizeof(string), "UPDATE players SET WantedLevel='%d' WHERE id=%d", WantedLevel[giveplayerid], PlayerData[giveplayerid][pSQLID]); mysql_query(string); if(gTeam[giveplayerid] == 4) { gTeam[giveplayerid] = 3; SetPlayerToTeamColor(giveplayerid); } } } else { SendClientMessage(playerid, COLOR_GREY, "Acest jucator nu este conectat!"); } } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti politist!"); } } return 1; }[/pawn] Sau http://pastebin.com/mfFBsNHZ Imagini / Video (optional): Aţi încercat să rezolvaţi singur?: Sa schimb comanda, doar.
-
Da, ok, schimb coordonatele. dar masinile?