SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/03/2010, 07:08 PM   #1
02manchestera
Huge Clucker
 
Join Date: Jan 2010
Posts: 401
Reputation: 1
Default bug hunt

Im tring to find a bug with my admin system but cant find it any where, what it is doing is showing players that are admin when they are not but they do not have the cmds so i was wondering if there is anything wrong with this(the cmd to show onlineadmins.

Code:
if (strcmp(cmd, "/admins", true) == 0) {
    new count = 0;
    SendClientMessage(playerid, GREEN, "______________________________________");
    SendClientMessage(playerid, GREEN, "            [Online Admins]");
    for(new i = 0; i < MAX_PLAYERS; i++) {
      if (IsPlayerConnected(i)) {
        if(adminlevel[i] >= 1 && adminlevel[i] <= 5 && Hide[i] == 0) {
          GetPlayerName(i, sendername, sizeof(sendername));
          format(string, 128, "Level %d [%i]%s", adminlevel[i],i,sendername);
          SendClientMessage(playerid, LIGHTGREEN, string);
          count++;
        }
      }
    }
    if (count == 0) SendClientMessage(playerid,RED,"No Admins Online");
    SendClientMessage(playerid, GREEN, "______________________________________");
    return 1;
  }
02manchestera is offline  
Old 27/03/2010, 07:10 PM   #2
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,478
Reputation: 173
Default Re: bug hunt

Did you make that is that a GF edited one?
__________________
If you read my old posts; I apologize in advance.
Steven82 is offline  
Old 27/03/2010, 07:24 PM   #3
02manchestera
Huge Clucker
 
Join Date: Jan 2010
Posts: 401
Reputation: 1
Default Re: bug hunt

i didnt make it a friend did etch dont no if he did or not.
02manchestera is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] The Treasure Hunt (Easy to Configure) Lewwy Filterscripts 5 23/12/2013 02:21 PM
[FilterScript] [FS] Minigame ~> RocketLauncher Hunt <~ @TheShadow@ Filterscripts 11 07/05/2010 10:24 AM
head hunt WardenCS Help Archive 10 26/04/2009 12:34 PM


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.