15.07.2012, 13:11
i've made a simple example, take a look.
pawn Код:
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;
}
}