29.10.2013, 22:56
I don't really understand, is that you want to mean?
Correct me if I'm wrong
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new playerIP[16];
if(IsPlayerConnected(i))
{
GetPlayerIp(i, rIP,sizeof(rIP)); // get is ip
if(!strcmp(rIP, 127.0.0.1, true)) // if is ip is 127.0.0.1
{
if(success) // if the pass is correct
{
// blablablabla
return 1;
}
else // if the pass is not correct
{
// blablabla
return 1;
}
return 1;
}
else // is ip is not 127.0.0.1
{
// blablablabla
return 1;
}
return 1;
}
return 1;
}//matnix