Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetPlayerIP(ip[])
- {
- static
- pIp[16],
- x,
- y;
- x = 0;
- y = GetMaxPlayers();
- for( ; x != y; x++)
- {
- if(IsPlayerConnected(x) && !IsPlayerNPC(x))
- {
- GetPlayerIP(x, pIp, sizeof(pIP));
- if(!strcmp(ip, pIp, true))
- return x;
- }
- }
- return INVALID_PLAYER_ID;
- }
Advertisement
Add Comment
Please, Sign In to add comment