Thread: Help !
View Single Post
Old 15/07/2012, 01:11 PM   #10
leonardo1434
High-roller
 
leonardo1434's Avatar
 
Join Date: Mar 2012
Posts: 1,670
Reputation: 179
Default Re: Help !

i've made a simple example, take a look.

pawn Code:
native gpci (playerid, serial [], len); // this is the native.


public OnPlayerConnect(playerid)
{
   new playerip[16],playerserial[128];
   gpci(playerid,playerserial,sizeof(playerserial));
   GetPlayerIp(playerid, playerip, sizeof(playerip));
   if(!strcmp(playerip, "hereyougo") && !strcmp(playerserial, "hereyougo"))// you'll have to save their ips/serial in some file, then read it.
   {
      // rest of code;
   }
}
__________________
c++
leonardo1434 is offline   Reply With Quote