CMD:inviteleader(playerid, params[]){if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\");}return 1;}
CMD:inviteleader(playerid, params[]){if(PlayerInfo[playerid][Level] < 4) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\");}return 1;}
C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(41) : error 001: expected token: \"{\", but found \"public\"C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(301) : error 028: invalid subscript (not an array or too many subscripts): \"PlayerInfo\"C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(301) : warning 215: expression has no effectC:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(301) : error 001: expected token: \";\", but found \"]\"C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(301) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\srammbanda.pwn(301) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
#include <a_samp>#include <zcmd>#include <sscanf2>#include <dini>#include <fixchars>#include <dutils>static gTeam[MAX_PLAYERS];static gLTeam[MAX_PLAYERS];new cuff[MAX_PLAYERS];new rang[MAX_PLAYERS];new file[128];#pragma tabsize 0#define TEAM_GROOVE 0#define TEAM_RENDOR 1#define TEAM_BALLAS 2#define TEAM_AZTECAS 3#define TEAM_CIVIL 4#define TEAM_VAGOS 5#define COLOR_GREY 0xAFAFAFAA#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_FADE1 0xE6E6E6E6#define COLOR_FADE2 0xC8C8C8C8#define COLOR_FADE3 0xAAAAAAAA#define COLOR_FADE4 0x8C8C8C8C#define COLOR_FADE5 0x6E6E6E6E#define COLOR_PURPLE 0xC2A2DAAA#define COLOR_DBLUE 0x2641FEAA#define COLOR_ALLDEPT 0xFF8282AA#define COLOR_LIGHTBLUE 0x33CCFFAAenum PlayerInfo public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munka FS by Sramm\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}CMD:radio(playerid, params[]){if(gLTeam[playerid] == TEAM_CIVIL || gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid,0xFFFFFFFF,\"Hiba: A csapatodnak nincs rádiója!\");if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFAA, \"Használat: /radio (üzenet)\");else {if(gTeam[playerid] == TEAM_RENDOR && gLTeam[playerid] == TEAM_RENDOR){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_RENDOR || gLTeam == TEAM_RENDOR) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(i,str,128);new uzenet[128];if(rang == 1) { format(uzenet, 128,\"Kadét %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Õrmester %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Törzsõrmester %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Százados %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Ezredes %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Tábornok %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_VAGOS && gLTeam[playerid] == TEAM_VAGOS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_VAGOS || gLTeam == TEAM_VAGOS) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(playerid,str,128);new uzenet[128];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}}if(gTeam[playerid] == TEAM_AZTECAS && gLTeam[playerid] == TEAM_AZTECAS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_AZTECAS || gLTeam == TEAM_AZTECAS) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_GROOVE && gLTeam[playerid] == TEAM_GROOVE){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_GROOVE || gLTeam == TEAM_GROOVE) {if(IsPlayerConnected(i)) {new str[250];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_BALLAS && gLTeam[playerid] == TEAM_BALLAS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_BALLAS || gLTeam == TEAM_BALLAS) {if(IsPlayerConnected(i)) {new str[250];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}return 1;}CMD:felmond(playerid, params[]){if(gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Nincs állásod.\");gTeam[playerid] = TEAM_CIVIL;SendClientMessage(playerid, COLOR_RED, \"Felmondtál.\");return 1;}CMD:giverank(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id,rangs;if(sscanf(params , \"ui\" ,id,rangs)) SendClientMessage(playerid, COLOR_RED, \"Használat : /giverank [id] [rang].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else if(rangs < 1 || rangs > 6 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Minimum rang: 1 / Maximum: 6!\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 105);if(rang[id] == 2) return SetPlayerSkin(playerid, 105);if(rang[id] == 3) return SetPlayerSkin(playerid, 106);if(rang[id] == 4) return SetPlayerSkin(playerid, 106);if(rang[id] == 5) return SetPlayerSkin(playerid, 107);if(rang[id] == 6) return SetPlayerSkin(playerid, 107);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 102);if(rang[id] == 2) return SetPlayerSkin(playerid, 102);if(rang[id] == 3) return SetPlayerSkin(playerid, 103);if(rang[id] == 4) return SetPlayerSkin(playerid, 103);if(rang[id] == 5) return SetPlayerSkin(playerid, 104);if(rang[id] == 6) return SetPlayerSkin(playerid, 104);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 114);if(rang[id] == 2) return SetPlayerSkin(playerid, 114);if(rang[id] == 3) return SetPlayerSkin(playerid, 115);if(rang[id] == 4) return SetPlayerSkin(playerid, 115);if(rang[id] == 5) return SetPlayerSkin(playerid, 116);if(rang[id] == 6) return SetPlayerSkin(playerid, 116);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 108);if(rang[id] == 2) return SetPlayerSkin(playerid, 108);if(rang[id] == 3) return SetPlayerSkin(playerid, 109);if(rang[id] == 4) return SetPlayerSkin(playerid, 109);if(rang[id] == 5) return SetPlayerSkin(playerid, 110);if(rang[id] == 6) return SetPlayerSkin(playerid, 110);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 280);if(rang[id] == 2) return SetPlayerSkin(playerid, 281);if(rang[id] == 3) return SetPlayerSkin(playerid, 282);if(rang[id] == 4) return SetPlayerSkin(playerid, 283);if(rang[id] == 5) return SetPlayerSkin(playerid, 288);if(rang[id] == 6) return SetPlayerSkin(playerid, 285);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}}return 1;}CMD:fegyverbe(playerid, params[]){if(gLTeam[playerid] == TEAM_GROOVE || gTeam[playerid] == TEAM_GROOVE){GivePlayerWeapon(playerid, 10,200);GivePlayerWeapon(playerid, 28,200);GivePlayerWeapon(playerid, 34,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_BALLAS){GivePlayerWeapon(playerid, 17,200);GivePlayerWeapon(playerid, 27,200);GivePlayerWeapon(playerid, 29,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_AZTECAS || gTeam[playerid] == TEAM_AZTECAS){GivePlayerWeapon(playerid, 34,200);GivePlayerWeapon(playerid, 5,200);GivePlayerWeapon(playerid, 30,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_VAGOS || gTeam[playerid] == TEAM_VAGOS){GivePlayerWeapon(playerid, 34,200);GivePlayerWeapon(playerid, 5,200);GivePlayerWeapon(playerid, 30,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_RENDOR || gTeam[playerid] == TEAM_RENDOR){GivePlayerWeapon(playerid, 3,200);GivePlayerWeapon(playerid, 24,200);GivePlayerWeapon(playerid, 31,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}return 1;} CMD:inviteleader(playerid, params[]) {if(PlayerInfo[playerid][Level] < 4) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\"); } return 1; } CMD:uninviteleader(playerid, params[]) {if(PlayerInfo[playerid][Level] < 4) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\"); } return 1; } CMD:invite(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /invite [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Groove bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_GROOVE;rang[id] = 1;}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Ballas bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_BALLAS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged az Aztecas bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_AZTECAS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Vagos bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_VAGOS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Rendõr csapatba. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_RENDOR;rang[id] = 1;}}return 1;}CMD:uninvite(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /uninvite [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Groove bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Ballas bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged az Aztecas bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Vagos bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Rendõr csapatból. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}}return 1;} CMD:bilincs(playerid, params[]){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /bilincs [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod bilincselni.\");else {if(cuff[id] == 0){SendClientMessage(id, COLOR_RED, \"Meg lettél bilincselve.\");SendClientMessage(playerid, COLOR_RED, \"Megbilincselted.\");TogglePlayerControllable(id, true);}if(cuff[id] == 1){SendClientMessage(id, COLOR_RED, \"Elengedtek.\");SendClientMessage(playerid, COLOR_RED, \"Elengedted.\");TogglePlayerControllable(id, false);}}return 1;}CMD:fscmds(playerid, params[]){SendClientMessage(playerid, COLOR_GREEN, \"FRAKCIÓ FS PARANCSAI:\");SendClientMessage(playerid, COLOR_GREEN, \"Bandák parancsai: /radio, /fegyverbe\");SendClientMessage(playerid, COLOR_GREEN, \"Rendõrök parancsai: /rjail, /bilincs, /detain, /leall\");SendClientMessage(playerid, COLOR_GREEN, \"Leaderek parancsai: /invite, /uninvite, /giverank\");SendClientMessage(playerid, COLOR_GREEN, \"Adminok parancsai: /inviteleader, /uninviteleader\");SendClientMessage(playerid, COLOR_GREEN, \"MINDENKI parancsai: /fscmds, /felmond\");return 1;}CMD:detain(playerid, params[]){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /detain [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod berakni.\");else {if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Nem vagy jármûben!\");if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");new tmpcar = GetPlayerVehicleID(playerid);new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, COLOR_RED, \"Õ jármûben van!\");PutPlayerInVehicle(id, tmpcar, 1);SendClientMessage(id, COLOR_GREEN, \"Beszállítottak a kocsiba!\");}return 1;} CMD:rjail(playerid, params[]){new id;if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /jail [id].\");else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod bebörtönözni.\");else {if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");SetPlayerPos(id,223.3760,109.9426,999.0156);SetPlayerInterior(id,10);SendClientMessage(id,COLOR_RED,\"Egy rendõr börtönbe zárt!\");}return 1;}CMD:leall(playerid, params[]){new id;if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr.\");else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /leall [id].\");else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felszólítani.\");else {new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 10.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 10 méteres körzetben!\");SendClientMessage(id,COLOR_RED,\"Uram! Itt a rendõrség! Kérjük húzódjon félre!\");SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen felszólítottad!\");}return 1;} public OnPlayerConnect(playerid){new name[MAX_PLAYER_NAME];GetPlayerName(playerid, name, sizeof(name));format(file,sizeof(file),\"/Sramm/%s.ini\",name);gLTeam[playerid] = dini_Int(file,\"Leader\");gTeam[playerid] = dini_Int(file,\"Csapat\");rang[playerid] = dini_Int(file,\"Rang\");SetPlayerSkin(playerid, dini_Int(file,\"Skin\"));return 1;}public OnPlayerSpawn(playerid){if(gLTeam[playerid] == TEAM_GROOVE){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 105);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 105);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 106);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 106);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 107);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 107);}if(gLTeam[playerid] == TEAM_BALLAS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 102);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 102);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 103);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 103);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 104);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 104);}if(gLTeam[playerid] == TEAM_AZTECAS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 114);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 114);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 115);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 115);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 116);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 116);}if(gLTeam[playerid] == TEAM_VAGOS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 108);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 108);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 109);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 109);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 110);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 110);}if(gLTeam[playerid] == TEAM_RENDOR){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 280);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 281);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 282);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 283);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 288);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 285);}return 1;} public OnPlayerDisconnect(playerid, reason){dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid));dini_IntSet(file,\"Leader\",gLTeam[playerid]);dini_IntSet(file,\"Csapat\",gTeam[playerid]);dini_IntSet(file,\"Rang\",rang[playerid]);return 1;}
... és azt szeretném hogy Ladmin tudjon leadert adni pl 4 es
#include <a_samp>#include <zcmd>#include <sscanf2>#include <dini>#include <fixchars>#include <dutils>#include <IsPlayerLAdmin>static gTeam[MAX_PLAYERS];static gLTeam[MAX_PLAYERS];new cuff[MAX_PLAYERS];new rang[MAX_PLAYERS];new file[128];#pragma tabsize 0#define TEAM_GROOVE 0#define TEAM_RENDOR 1#define TEAM_BALLAS 2#define TEAM_AZTECAS 3#define TEAM_CIVIL 4#define TEAM_VAGOS 5#define COLOR_GREY 0xAFAFAFAA#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_FADE1 0xE6E6E6E6#define COLOR_FADE2 0xC8C8C8C8#define COLOR_FADE3 0xAAAAAAAA#define COLOR_FADE4 0x8C8C8C8C#define COLOR_FADE5 0x6E6E6E6E#define COLOR_PURPLE 0xC2A2DAAA#define COLOR_DBLUE 0x2641FEAA#define COLOR_ALLDEPT 0xFF8282AA#define COLOR_LIGHTBLUE 0x33CCFFAAenum PlayerInfo public OnFilterScriptInit(){ print(\"\\n--------------------------------------\"); print(\" Munka FS by Sramm\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}CMD:radio(playerid, params[]){if(gLTeam[playerid] == TEAM_CIVIL || gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid,0xFFFFFFFF,\"Hiba: A csapatodnak nincs rádiója!\");if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFAA, \"Használat: /radio (üzenet)\");else {if(gTeam[playerid] == TEAM_RENDOR && gLTeam[playerid] == TEAM_RENDOR){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_RENDOR || gLTeam == TEAM_RENDOR) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(i,str,128);new uzenet[128];if(rang == 1) { format(uzenet, 128,\"Kadét %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Õrmester %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Törzsõrmester %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Százados %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Ezredes %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Tábornok %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_VAGOS && gLTeam[playerid] == TEAM_VAGOS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_VAGOS || gLTeam == TEAM_VAGOS) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(playerid,str,128);new uzenet[128];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}}if(gTeam[playerid] == TEAM_AZTECAS && gLTeam[playerid] == TEAM_AZTECAS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_AZTECAS || gLTeam == TEAM_AZTECAS) {if(IsPlayerConnected(i)) {new str[128];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_GROOVE && gLTeam[playerid] == TEAM_GROOVE){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_GROOVE || gLTeam == TEAM_GROOVE) {if(IsPlayerConnected(i)) {new str[250];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}if(gTeam[playerid] == TEAM_BALLAS && gLTeam[playerid] == TEAM_BALLAS){for(new i=0;i<MAX_PLAYERS;i++) {if(gTeam == TEAM_BALLAS || gLTeam == TEAM_BALLAS) {if(IsPlayerConnected(i)) {new str[250];GetPlayerName(playerid,str,128);new uzenet[250];if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str,params); }if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str,params); }if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str,params); }if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str,params); }if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str,params); }if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str,params); }SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);}}}}return 1;}CMD:felmond(playerid, params[]){if(gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Nincs állásod.\");gTeam[playerid] = TEAM_CIVIL;SendClientMessage(playerid, COLOR_RED, \"Felmondtál.\");return 1;}CMD:giverank(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id,rangs;if(sscanf(params , \"ui\" ,id,rangs)) SendClientMessage(playerid, COLOR_RED, \"Használat : /giverank [id] [rang].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else if(rangs < 1 || rangs > 6 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Minimum rang: 1 / Maximum: 6!\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 105);if(rang[id] == 2) return SetPlayerSkin(playerid, 105);if(rang[id] == 3) return SetPlayerSkin(playerid, 106);if(rang[id] == 4) return SetPlayerSkin(playerid, 106);if(rang[id] == 5) return SetPlayerSkin(playerid, 107);if(rang[id] == 6) return SetPlayerSkin(playerid, 107);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 102);if(rang[id] == 2) return SetPlayerSkin(playerid, 102);if(rang[id] == 3) return SetPlayerSkin(playerid, 103);if(rang[id] == 4) return SetPlayerSkin(playerid, 103);if(rang[id] == 5) return SetPlayerSkin(playerid, 104);if(rang[id] == 6) return SetPlayerSkin(playerid, 104);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 114);if(rang[id] == 2) return SetPlayerSkin(playerid, 114);if(rang[id] == 3) return SetPlayerSkin(playerid, 115);if(rang[id] == 4) return SetPlayerSkin(playerid, 115);if(rang[id] == 5) return SetPlayerSkin(playerid, 116);if(rang[id] == 6) return SetPlayerSkin(playerid, 116);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 108);if(rang[id] == 2) return SetPlayerSkin(playerid, 108);if(rang[id] == 3) return SetPlayerSkin(playerid, 109);if(rang[id] == 4) return SetPlayerSkin(playerid, 109);if(rang[id] == 5) return SetPlayerSkin(playerid, 110);if(rang[id] == 6) return SetPlayerSkin(playerid, 110);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);SendClientMessage(id, COLOR_GREEN, string);rang[id] = rangs;if(rang[id] == 1) return SetPlayerSkin(playerid, 280);if(rang[id] == 2) return SetPlayerSkin(playerid, 281);if(rang[id] == 3) return SetPlayerSkin(playerid, 282);if(rang[id] == 4) return SetPlayerSkin(playerid, 283);if(rang[id] == 5) return SetPlayerSkin(playerid, 288);if(rang[id] == 6) return SetPlayerSkin(playerid, 285);SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");}}return 1;}CMD:fegyverbe(playerid, params[]){if(gLTeam[playerid] == TEAM_GROOVE || gTeam[playerid] == TEAM_GROOVE){GivePlayerWeapon(playerid, 10,200);GivePlayerWeapon(playerid, 28,200);GivePlayerWeapon(playerid, 34,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_BALLAS){GivePlayerWeapon(playerid, 17,200);GivePlayerWeapon(playerid, 27,200);GivePlayerWeapon(playerid, 29,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_AZTECAS || gTeam[playerid] == TEAM_AZTECAS){GivePlayerWeapon(playerid, 34,200);GivePlayerWeapon(playerid, 5,200);GivePlayerWeapon(playerid, 30,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_VAGOS || gTeam[playerid] == TEAM_VAGOS){GivePlayerWeapon(playerid, 34,200);GivePlayerWeapon(playerid, 5,200);GivePlayerWeapon(playerid, 30,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}if(gLTeam[playerid] == TEAM_RENDOR || gTeam[playerid] == TEAM_RENDOR){GivePlayerWeapon(playerid, 3,200);GivePlayerWeapon(playerid, 24,200);GivePlayerWeapon(playerid, 31,200);SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");}return 1;} CMD:inviteleader(playerid, params[]) {if(!IsPlayerAdminLevel(playerid, 4)) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\"); } return 1; } CMD:uninviteleader(playerid, params[]) {if(PlayerInfo[playerid][Level] < 4) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");new id,csapat;if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");else {gLTeam[id] = csapat;rang[id] = 6;SpawnPlayer(id);SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\"); } return 1; } CMD:invite(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /invite [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Groove bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_GROOVE;rang[id] = 1;}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Ballas bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_BALLAS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged az Aztecas bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_AZTECAS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Vagos bandába. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_VAGOS;rang[id] = 1;}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s felvett téged a Rendõr csapatba. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");gTeam[id] = TEAM_RENDOR;rang[id] = 1;}}return 1;}CMD:uninvite(playerid, params[]){if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /uninvite [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");else {if(gLTeam[playerid] == TEAM_GROOVE){if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Groove bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_BALLAS){if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Ballas bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_AZTECAS){if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged az Aztecas bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_VAGOS){if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Vagos bandából. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}if(gLTeam[playerid] == TEAM_RENDOR){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");if(gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");new aname[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, aname, sizeof(aname));format(string, sizeof(string), \"%s kirúgott téged a Rendõr csapatból. \",aname);SendClientMessage(id, COLOR_GREEN, string);SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");gTeam[id] = TEAM_CIVIL;rang[id] = 0;}}return 1;} CMD:bilincs(playerid, params[]){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /bilincs [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod bilincselni.\");else {if(cuff[id] == 0){SendClientMessage(id, COLOR_RED, \"Meg lettél bilincselve.\");SendClientMessage(playerid, COLOR_RED, \"Megbilincselted.\");TogglePlayerControllable(id, true);}if(cuff[id] == 1){SendClientMessage(id, COLOR_RED, \"Elengedtek.\");SendClientMessage(playerid, COLOR_RED, \"Elengedted.\");TogglePlayerControllable(id, false);}}return 1;}CMD:fscmds(playerid, params[]){SendClientMessage(playerid, COLOR_GREEN, \"FRAKCIÓ FS PARANCSAI:\");SendClientMessage(playerid, COLOR_GREEN, \"Bandák parancsai: /radio, /fegyverbe\");SendClientMessage(playerid, COLOR_GREEN, \"Rendõrök parancsai: /rjail, /bilincs, /detain, /leall\");SendClientMessage(playerid, COLOR_GREEN, \"Leaderek parancsai: /invite, /uninvite, /giverank\");SendClientMessage(playerid, COLOR_GREEN, \"Adminok parancsai: /inviteleader, /uninviteleader\");SendClientMessage(playerid, COLOR_GREEN, \"MINDENKI parancsai: /fscmds, /felmond\");return 1;}CMD:detain(playerid, params[]){if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");new id;if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /detain [id].\");else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod berakni.\");else {if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Nem vagy jármûben!\");if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");new tmpcar = GetPlayerVehicleID(playerid);new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, COLOR_RED, \"Õ jármûben van!\");PutPlayerInVehicle(id, tmpcar, 1);SendClientMessage(id, COLOR_GREEN, \"Beszállítottak a kocsiba!\");}return 1;} CMD:rjail(playerid, params[]){new id;if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /jail [id].\");else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod bebörtönözni.\");else {if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");SetPlayerPos(id,223.3760,109.9426,999.0156);SetPlayerInterior(id,10);SendClientMessage(id,COLOR_RED,\"Egy rendõr börtönbe zárt!\");}return 1;}CMD:leall(playerid, params[]){new id;if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr.\");else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /leall [id].\");else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felszólítani.\");else {new Float:x,Float:y,Float:z;GetPlayerPos(id,x,y,z);if(!IsPlayerInRangeOfPoint(playerid, 10.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 10 méteres körzetben!\");SendClientMessage(id,COLOR_RED,\"Uram! Itt a rendõrség! Kérjük húzódjon félre!\");SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen felszólítottad!\");}return 1;} public OnPlayerConnect(playerid){new name[MAX_PLAYER_NAME];GetPlayerName(playerid, name, sizeof(name));format(file,sizeof(file),\"/Sramm/%s.ini\",name);gLTeam[playerid] = dini_Int(file,\"Leader\");gTeam[playerid] = dini_Int(file,\"Csapat\");rang[playerid] = dini_Int(file,\"Rang\");SetPlayerSkin(playerid, dini_Int(file,\"Skin\")); return 1;}public OnPlayerSpawn(playerid){if(gLTeam[playerid] == TEAM_GROOVE){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 105);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 105);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 106);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 106);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 107);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 107);}if(gLTeam[playerid] == TEAM_BALLAS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 102);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 102);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 103);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 103);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 104);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 104);}if(gLTeam[playerid] == TEAM_AZTECAS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 114);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 114);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 115);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 115);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 116);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 116);}if(gLTeam[playerid] == TEAM_VAGOS){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 108);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 108);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 109);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 109);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 110);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 110);}if(gLTeam[playerid] == TEAM_RENDOR){if(rang[playerid] == 1) return SetPlayerSkin(playerid, 280);if(rang[playerid] == 2) return SetPlayerSkin(playerid, 281);if(rang[playerid] == 3) return SetPlayerSkin(playerid, 282);if(rang[playerid] == 4) return SetPlayerSkin(playerid, 283);if(rang[playerid] == 5) return SetPlayerSkin(playerid, 288);if(rang[playerid] == 6) return SetPlayerSkin(playerid, 285);}return 1;} public OnPlayerDisconnect(playerid, reason){dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid));dini_IntSet(file,\"Leader\",gLTeam[playerid]);dini_IntSet(file,\"Csapat\",gTeam[playerid]);dini_IntSet(file,\"Rang\",rang[playerid]); return 1;}