Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
Hi,
How to get computer name?
Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
I need to detect if player using sandbox or programs that in one computer can on 2 or more gta san andreas games, so how to check that? if checking ip there is problem what if brothers,sisters or friends is using same computer internet, so i can't check ip i need to check computer name, or parameter that is for computer only, now i see callback onincomingconnection there is port parameter, maybe possible to check if same port player connect so he is using twice gta or no?
Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
stock GetComputerName(playerid,name[],max_dest=sizeof(name)){
format(name,max_dest,"seriously ?");
#pragma unused playerid
}
Posts: 1,506
Threads: 13
Joined: Jun 2015
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
There are isolation programs, such as Sandboxie, that let you run more than one instance of a program on your computer. Basically letting you connect two different clients from the same device. Only thing I can think of is using GPCI, but I'm not sure whether the directory would be the same for every instance, so you shouldn't rely entirely on GPCI.
Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
i tried gpci when player connect onplayerconnect i compare all connected players gpci with connected player, and then kick, but it not work, player will can use sandbox