Jump to content

Madu99

Membru
  • Posts

    93
  • Joined

  • Last visited

    Never

Everything posted by Madu99

  1. O a 2 comanda de dat admin zici tu ? eu am comanda asta cu care am acces sa dau admin doar de pe nick "MaDuuu" [pawn]//----------------------------------[MAKEADMIN]------------------------------------------------ if(strcmp(cmd, "/makeadmin", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /makeadmin [playerid/PartOfName] [level(1-1338)]"); return 1; } /*if(AdminSecurity[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "Pentru securitate, indetifica-te in /account panel!"); return 1; }*/ new para1; new level; new PlayerNames[MAX_PLAYER_NAME]; new playerd; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); GetPlayerName(playerd, PlayerNames, sizeof(PlayerNames)); if(strcmp(PlayerNames, "MaDuuu", true) == 0) if (PlayerInfo[playerid][pAdmin] <= 1339) { if(IsPlayerConnected(para1)) { if(IsPlayerAdmin(para1)) { SendClientMessage(playerid, COLOR_GRAD2, "Adminul acesta este logat ca admin principal !"); return 1; } if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pAdmin] = level; printf("SERVER: %s has promoted %s to a level %d admin.", sendername, giveplayer, level); format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai dreptul de a utiliza aceasta comanda!"); } } return 1; }[/pawn]
  2. nu e din parola de la rcon am schimbat de mi sa luat :| si la fel
  3. atunci care este problema? ... nu inteleg ei zic ca au un hack si ca se paote face daca bagi anti hack dar nu stiu ce hack
  4. Problema e ca in server log nu imi arata nimic am fost atent dar in serfer log nu arata nimic de care ma pot folosi ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, (C)2005-2013 SA-MP Team [23:15:16] [23:15:16] Server Plugins [23:15:16] -------------- [23:15:16] Loaded 0 plugins. [23:15:16] [23:15:16] Filterscripts [23:15:16] --------------- [23:15:16] Loading filterscript 'base.amx'... [23:15:16] --Base FS loaded. [23:15:16] Loading filterscript 'gl_actions.amx'... [23:15:16] Loading filterscript 'gl_property.amx'... [23:15:16] ----------------------------------- [23:15:16] Grand Larceny Property Filterscript [23:15:16] ----------------------------------- [23:15:16] Loading filterscript 'gl_realtime.amx'... [23:15:16] Loaded 4 filterscripts. [23:15:16] Loaded 3 vehicles from: vehicles/trains.txt [23:15:16] Loaded 3 vehicles from: vehicles/pilots.txt [23:15:16] Loaded 15 vehicles from: vehicles/lv_law.txt [23:15:16] Loaded 39 vehicles from: vehicles/lv_airport.txt [23:15:16] Loaded 255 vehicles from: vehicles/lv_gen.txt [23:15:16] Loaded 38 vehicles from: vehicles/sf_law.txt [23:15:16] Loaded 35 vehicles from: vehicles/sf_airport.txt [23:15:16] Loaded 353 vehicles from: vehicles/sf_gen.txt [23:15:16] Loaded 24 vehicles from: vehicles/ls_law.txt [23:15:16] Loaded 37 vehicles from: vehicles/ls_airport.txt [23:15:16] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt [23:15:16] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt [23:15:16] Loaded 71 vehicles from: vehicles/whetstone.txt [23:15:16] Loaded 168 vehicles from: vehicles/bone.txt [23:15:16] Loaded 61 vehicles from: vehicles/flint.txt [23:15:16] Loaded 96 vehicles from: vehicles/tierra.txt [23:15:16] Loaded 96 vehicles from: vehicles/red_county.txt [23:15:16] Total vehicles from files: 1781 [23:15:16] Reading File: blank [23:15:16] Reading File: properties/houses.txt [23:15:16] Reading File: properties/businesses.txt [23:15:16] Reading File: properties/banks.txt [23:15:16] Reading File: properties/police.txt [23:15:16] --------------------------------------- [23:15:16] Running Grand Larceny - by the SA-MP team [23:15:16] --------------------------------------- [23:15:16] Number of vehicle models: 173 [23:28:05] --- Server Shutting Down.
  5. acolo unde ar trebui sa scrie BAD RCON?
  6. nu am comanda poate este modificata in loc de /createnote in alta .... eu stiu cum pot vedea linia ? cu care isi da adm?
  7. salut am si eu o problema uni intra la mine pe servr si isi dau admin din rcon login si am schimbat parola de nush cate ori keyloger nu am in pc abia am pacat windousul cred ca e vrun hack ceva sau...:-??ma puteti ajuta?
  8. nu e de la rcon am schimbat se conecteaza la rcon logincu hack nush cum daca puteti sami dati un anti hack rcon
  9. salut samp.ro am si eu o problema cineva isi da admin pe servarul meu si mia banat tot sv:| unde pot vede ce comanda am intrat in server_log dar nu imi apare nimic:| va rog
  10. Madu99

    bug nfs club

    nu e nici de la asta...:| [pawn] if(strcmp(cmd, "/clubinvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(PlayerInfo[playerid][pClubLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pClubMember] == 0) { if(PlayerInfo[playerid][pClubLeader] == 1) { ftext = "NFS Club"; } else if(PlayerInfo[playerid][pClubLeader] == 2) { ftext = "NRG Club"; } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pClubMember] = PlayerInfo[playerid][pClubLeader]; PlayerInfo[para1][pClubRank] = 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(club leaders only)!"); } } return 1; }[/pawn]
  11. Vreau si eu comanda /destroycar doar pentru o singura masina personala sa intru in ea si sa o sterg eu am comanda asta : [pawn] if(strcmp(cmd, "/destroycars", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1338) { for(new h = 732; h < sizeof(CarInfo); h++) { new car = h; format(string, 128, "cars/%d.ini", car); dini_Create(string); CarInfo[car][cID] = car; new text[20]; CarInfo[car][cOwned] = 0; text = "No-One"; strmid(CarInfo[car][cOwner], text, 0, strlen(text), 999); CarInfo[car][cLocationx] = 0; CarInfo[car][cLocationy] = 0; CarInfo[car][cLocationz] = 0; CarInfo[car][cAngle] = 0; CarInfo[car][cModel] = 0; CarInfo[car][cColorOne] = 0; CarInfo[car][cColorTwo] = 0; format(string, sizeof(string), "Destroyed Car ID: %d", car); SendClientMessage(playerid, COLOR_WHITE, string); DestroyVehicle(car); SaveCar(car); } for(new i = 0; i <= MAX_PLAYERS; i++) { PlayerInfo[pCar] = 9999; SendClientMessage(i, COLOR_WHITE, "Masina ta personala a fost stearsa, o poti crea acum din nou!"); } } } return 1; }[/pawn] Dar aceasta comanda sterge toate masinile
  12. Madu99

    bug nfs club

    Nu am [pawn]PlayerInfo[playerid][pClubLeader][/pawn] si la [pawn]PlayerInfo[para1][pClubRank] = 0;[/pawn] o sa modific si am sa pun 1 in loc de 0 poate asta era...
  13. Madu99

    bug nfs club

    stie careva? daca nu dati tc ...
  14. Madu99

    bug nfs club

    [pawn] pNFS, pClubLeader, pClubMember, pClubWarns, pClubRank,[/pawn] Nu am onplayerconnect :-? [pawn]if( strcmp( key , "ClubRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClubRank] = strval( val ); } if( strcmp( key , "ClubMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClubMember] = strval( val ); } if( strcmp( key , "ClubLeader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClubLeader] = strval( val ); } if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //DNB { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1462.2960,2773.0686,10.8203); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; GivePlayerWeapon(playerid, 24, 50);// Deagle GivePlayerWeapon(playerid, 4, 1);// Cutit return 1; }[/pawn] Nu am nici onplayergister Iar pInfo am e definit
  15. am si eu o problema la nfs club cand dau /clubinvite imi invita playerul iar dupa ce iese de pe server si revine nu mai este membru nfs club... [pawn] if(strcmp(cmd, "/clubinvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(PlayerInfo[playerid][pClubLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pClubMember] == 0) { if(PlayerInfo[playerid][pClubLeader] == 1) { ftext = "NFS Club"; } else if(PlayerInfo[playerid][pClubLeader] == 2) { ftext = "NRG Club"; } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pClubMember] = PlayerInfo[playerid][pClubLeader]; PlayerInfo[para1][pClubRank] = 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(club leaders only)!"); } } return 1; }[/pawn]
  16. Madu99

    bug nfs

    pai si ce nume?:|
  17. am si eu o problema... in aces fs pot vedea doar admini conecatti la rcon check pointurile... cum le pot face sa vada si playeri? [pawn]#define FILTERSCRIPT #define MAX_RACE_CPS 300//maximum number of checkpoints #define MIN_RACE_CPS 5//minimum number of checkpoints #include <a_samp> #include <foreach> new Float:CheckpointCoord[3][MAX_RACE_CPS], CheckpointsSetted = 0, cfgRace = 255, whichCP[MAX_PLAYERS], placement = 0, countdowntimer, saveSecs; forward StartRaceWithCountdown(playerid, seconds,start); forward ShowCountdown(playerid,seconds,firstrun); public OnFilterScriptInit() { print("\n--------------------------------------"); print(" tRace simple racesystem by tMike for SA-MP 0.3 loaded."); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { if(CheckpointsSetted > 0) { foreach(Player,i) DisablePlayerRaceCheckpoint(i); } KillTimer(countdowntimer); cfgRace = 255; CheckpointsSetted = 0; return 1; } public OnPlayerConnect(playerid) { whichCP[playerid] = 0; return 1; } public StartRaceWithCountdown(playerid, seconds, start) { if(seconds == 0)// 0 start it directly { SetPlayerRaceCheckpoint(playerid, cfgRace, CheckpointCoord[0][1], CheckpointCoord[1][1], CheckpointCoord[2][1], CheckpointCoord[0][2], CheckpointCoord[1][2], CheckpointCoord[2][2], 14.0); } if(start == 0) { saveSecs = seconds; new cdstring[4]; format(cdstring,sizeof(cdstring),"~b~ %d",seconds); GameTextForPlayer(playerid, cdstring, 5000, 333); countdowntimer = SetTimerEx("ShowCountdown",1000,1,"d",playerid); } return 1; } public ShowCountdown(playerid) { new cdstring[10]; saveSecs--; if(saveSecs > 3 && saveSecs < 61) { new randcolor[6]; PlayerPlaySound(playerid,1056,0.0,0.0,0.0); switch(random(6)) { case 1: randcolor = "~b~"; case 2: randcolor = "~g~"; case 3: randcolor = "~y~"; case 4: randcolor = "~p~"; case 5: randcolor = "~r~"; case 6: randcolor = "~w~"; } format(cdstring,sizeof(cdstring),"%s %d",randcolor,saveSecs); GameTextForPlayer(playerid, cdstring, 1100, 3); } if(saveSecs > 0 && saveSecs < 4) { PlayerPlaySound(playerid,1056,0.0,0.0,0.0); if(saveSecs == 3) GameTextForPlayer(playerid, "~p~3", 1100, 3); else if(saveSecs == 2) GameTextForPlayer(playerid, "~p~3~n~~y~2", 1100, 3); else if(saveSecs == 1) GameTextForPlayer(playerid, "~p~3~n~~y~2~n~~r~1", 1100, 3); } else if(saveSecs == 0) { whichCP[playerid] = 1; PlayerPlaySound(playerid,1057,0.0,0.0,0.0); KillTimer(countdowntimer); GameTextForPlayer(playerid, "~y~Go!~n~~r~Go!~n~~g~Go!", 3000, 3); SetPlayerRaceCheckpoint(playerid, cfgRace, CheckpointCoord[0][1], CheckpointCoord[1][1], CheckpointCoord[2][1], CheckpointCoord[0][2], CheckpointCoord[1][2], CheckpointCoord[2][2], 14.0); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new tmp[128],idx; tmp = strtok(cmdtext, idx); if(strcmp(tmp, "/race", true) == 0) { if(IsPlayerAdmin(playerid)) { if(cfgRace != 255) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xAFAFAFAA, "ERROR: /race [iD]"); SendClientMessage(playerid, 0xFF6347AA, "| 1: Create checkpoint at current pos | 2: delete previous checkpoint | 3: delete all checkpoints"); SendClientMessage(playerid, 0xFF6347AA, "| 4: start race (only for you) | 5: start race (for all)"); format(tmp,sizeof(tmp)," Current checkpoint-id: %d",CheckpointsSetted); SendClientMessage(playerid,0xAFAFAFAA,tmp); return 1; } new raceid = strval(tmp); if (raceid == 1) { if(CheckpointsSetted < MAX_RACE_CPS) { new Float:GetX, Float:GetY, Float:GetZ; GetPlayerPos(playerid, GetX, GetY, GetZ); CheckpointsSetted++; CheckpointCoord[0][CheckpointsSetted] = GetX; CheckpointCoord[1][CheckpointsSetted] = GetY; CheckpointCoord[2][CheckpointsSetted] = GetZ; format(tmp, sizeof(tmp), "[tRace]: Checkpoint number %d successfully created.", CheckpointsSetted); SendClientMessage(playerid, 0x9ACD32AA, tmp); } else { format(tmp,sizeof(tmp),"[tRace]: You have created to much checkpoints, allowed are a maximum of %d!",MAX_RACE_CPS); SendClientMessage(playerid,0xAFAFAFAA,tmp); } return 1; } else if(raceid == 2) { if(CheckpointsSetted != 0) { format(tmp,sizeof(tmp),"[tRace]: Checkpoint ID %d deleted!",CheckpointsSetted); SendClientMessage(playerid,0x9ACD32AA,tmp); CheckpointsSetted--; } else { format(tmp,sizeof(tmp),"[tRace]: You have to create %d checkpoints to delete your last!",CheckpointsSetted); SendClientMessage(playerid,0xAFAFAFAA,tmp); } } else if(raceid == 3) { if(CheckpointsSetted > 0) { SendClientMessage(playerid,0x9ACD32AA,"[tRace]: All checkpoints reseted/deleted."); CheckpointsSetted = 0; } else SendClientMessage(playerid,0xAFAFAFAA,"[tRace]: There is no checkpoint could be deleted!"); } else if(raceid == 4) { if(CheckpointsSetted >= MIN_RACE_CPS) { SendClientMessage(playerid,0x9ACD32AA," The race with the checkpoints that you've placed (only visible for you) starts!"); whichCP[playerid] = 1; SetPlayerRaceCheckpoint(playerid, cfgRace, CheckpointCoord[0][1], CheckpointCoord[1][1], CheckpointCoord[2][1], CheckpointCoord[0][2], CheckpointCoord[1][2], CheckpointCoord[2][2], 14.0); } else { format(tmp,sizeof(tmp),"[tRace]: You have created %d checkpoints, but there must be at least %d!",CheckpointsSetted,MIN_RACE_CPS); SendClientMessage(playerid,0xAFAFAFAA,tmp); } } else if(raceid == 5) { if(CheckpointsSetted >= MIN_RACE_CPS) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xAFAFAFAA, "ERROR: /race 5 [countdowntime (ex. 15)]"); new counttime = strval(tmp); if(counttime < 1 && counttime > 61) return SendClientMessage(playerid, 0xAFAFAFAA,"ERROR: The countdowntime can not lay under 1 and over 60!"); foreach(Player,i) { StartRaceWithCountdown(i,counttime+1,0); } SendClientMessage(playerid,0x9ACD32AA," The race with the checkpoints that you've placed (only visible for you) starts!"); } else { format(tmp,sizeof(tmp),"[tRace]: You have created %d checkpoints, but there must be at least %d!",CheckpointsSetted,MIN_RACE_CPS); SendClientMessage(playerid,0xAFAFAFAA,tmp); } } } else { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xFF6347AA, "ERROR: You have to configure the type of race first (in which form the checkpoints should be displayed)."); SendClientMessage(playerid, 0xFF6347AA, "ERROR: Type noe one of the ID's [/race (1/2)] to unlock the next options"); SendClientMessage(playerid, 0xB4B5B7FF, "RACE-ID: 1: Normal (car/boat/on-foot) | 2: Airplane"); return 1; } new cfgid = strval(tmp); if(cfgid == 1) { SendClientMessage(playerid, 0x9ACD32AA, "[tRace]: You've choose the racing mode 1 (car/boat/on-foot). From now on only regular checkpoints will be created."); cfgRace = 0; } else if(cfgid == 2) { SendClientMessage(playerid, 0x9ACD32AA, "[tRace]: You've choose the racing mode 1 (car/boat/on-foot). From now on only regular checkpoints will be created."); cfgRace = 3; } return 1; } } else SendClientMessage(playerid,0xAFAFAFAA," You are not an admin!"); return 1; } return 0; } public OnPlayerEnterRaceCheckpoint(playerid) { if(CheckpointsSetted > 0) { if(whichCP[playerid] == CheckpointsSetted) { placement++; new string[128], racername[MAX_PLAYER_NAME]; GetPlayerName(playerid, racername, sizeof(racername)); if(placement == 1) { format(string, sizeof(string), "*%d*: %s has reached all checkpoints and became the first!", placement,racername); SendClientMessageToAll(0xB8860BAA, string); GivePlayerMoney(playerid,5000); GameTextForPlayer(playerid, "~g~+$5000", 5000, 1); } else if(placement == 2) { format(string, sizeof(string), "*%d*: %s has reached all checkpoints and was the second!", placement,racername); SendClientMessageToAll(0xC0C0C0FF, string); GivePlayerMoney(playerid,3000); GameTextForPlayer(playerid, "~g~+$3000", 5000, 1); } else if(placement == 3) { format(string, sizeof(string), "*%d*: %s has reached all checkpoints and was the third!", placement,racername); SendClientMessageToAll(0x9ACD32AA, string); GivePlayerMoney(playerid,1000); GameTextForPlayer(playerid, "~g~+$1000", 5000, 1); } else { format(string, sizeof(string), "*%d*: %s has reached all checkpoints and is now on the %d place!", placement,racername,placement); SendClientMessageToAll(0x9ACD32AA, string); } PlayerPlaySound(playerid,1057,0.0,0.0,0.0); DisablePlayerRaceCheckpoint(playerid); whichCP[playerid] = 0; return 1; } else if(whichCP[playerid] == CheckpointsSetted-1) { whichCP[playerid] += 1; SetPlayerRaceCheckpoint(playerid, 1, CheckpointCoord[0][whichCP[playerid]], CheckpointCoord[1][whichCP[playerid]], CheckpointCoord[2][whichCP[playerid]], 0.0, 0.0, 0.0, 14.0); return 1; } PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); whichCP[playerid] += 1; SetPlayerRaceCheckpoint(playerid, cfgRace, CheckpointCoord[0][whichCP[playerid]], CheckpointCoord[1][whichCP[playerid]], CheckpointCoord[2][whichCP[playerid]], CheckpointCoord[0][whichCP[playerid]+1], CheckpointCoord[1][whichCP[playerid]+1], CheckpointCoord[2][whichCP[playerid]+1], 14.0); return 1; } return 1; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }[/pawn]
  18. Madu99

    bug nfs

    am si eu o problema la nfs club cand dau /clubinvite imi invita playerul iar dupa ce iese de pe server si revine nu mai este membru nfs club... :| [pawn] if(strcmp(cmd, "/clubinvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(PlayerInfo[playerid][pClubLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pClubMember] == 0) { if(PlayerInfo[playerid][pClubLeader] == 1) { ftext = "NFS Club"; } else if(PlayerInfo[playerid][pClubLeader] == 2) { ftext = "NRG Club"; } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pClubMember] = PlayerInfo[playerid][pClubLeader]; PlayerInfo[para1][pClubRank] = 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(club leaders only)!"); } } return 1; }[/pawn]
  19. Madu99

    bug /invite

    rezolva cineva? daca nu dati tc :|
  20. Madu99

    bug /invite

    ce ai modificat? ca este la fel...
  21. Madu99

    bug /invite

    nu prea inteleg... uite comanda [pawn]if(strcmp(cmd, "/clubinvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(PlayerInfo[playerid][pClubLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pClubMember] == 0) { if(PlayerInfo[playerid][pClubLeader] == 1) { ftext = "NFS Club"; } else if(PlayerInfo[playerid][pClubLeader] == 2) { ftext = "NRG Club"; } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pClubMember] = PlayerInfo[playerid][pClubLeader]; PlayerInfo[para1][pClubRank] = 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(club leaders only)!"); } } return 1; }[/pawn]
  22. Madu99

    bug /invite

    scuzati de 2x post dar imi raspundeti si mie:|?
  23. Madu99

    bug /invite

    nu imi da niciun mesaj... dau /invite pana sa iasa de pe sv totul merge ok... cand iese si intra iar nu mai este membru nfs club:|
  24. Salut din nou .Am un bug la factiunea NFS Club daca dau /invite cuiva si iese de pe server si intra iar nu mai face parte din factiune....:| lipseste ceva dar ce:S :-??
×
×
  • Create New...

Important Information

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