Key to check player stats?
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new Float:x,Float:y,Float:z;
   
    if(newkeys & KEY_FIRE)
    {
      if(!IsPlayerInAnyVehicle(playerid))
      {
       for(new i = 0; i < MAX_PLAYERS; i++)
       {
           if(IsPlayerConnected(i))
           {
                if(playerdata[i][team] == 3)
                {
                      GetPlayerPos(playerid, x, y, z);
                      if(IsPlayerInRangeOfPoint(i, 10, x, y, z))
                      {
                      new string[128],name[MAX_PLAYER_NAME];
                      GetPlayerName(i,name,sizeof(name));
                      format(string,sizeof(string),"HACKER TEAM: %s\n",name);
                      SendClientMessage(playerid, 0xFF8811FF, string);
                      }
                 }
            }
       }
   }
}
return 1;
}
Gave me fatal errors, but it was due I dont have your variables, like PlayerData. And also I didn't test, just compiled. And without your variables I compiled it normally
Reply


Messages In This Thread
Key to check player stats? - by Rokzlive - 31.12.2010, 11:37
Re: Key to check player stats? - by Hiddos - 31.12.2010, 11:39
Re: Key to check player stats? - by blackwave - 31.12.2010, 11:48
Re: Key to check player stats? - by Rokzlive - 31.12.2010, 11:58
Re: Key to check player stats? - by blackwave - 31.12.2010, 12:09
Re: Key to check player stats? - by cessil - 31.12.2010, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)