28.05.2017, 20:44
(
Последний раз редактировалось Abagail; 28.05.2017 в 21:55.
)
If you mean they're connecting actual NPCs, you should simply add a validation check to ensure they're connecting locally. This can be done under OnPlayerConnect, for example:
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
new local_playerIP[32];
GetPlayerIp(playerid, local_playerIP, 32);
if(strcmp(local_playerIP, "127.0.0.1", true) != 0)
return Ban(playerid);
}
return true;
}