get computer name - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: get computer name (
/showthread.php?tid=637173)
get computer name -
Bussyman - 10.07.2017
Hi,
How to get computer name?
Re: get computer name - [G]am3r - 10.07.2017
Quote:
Originally Posted by Bussyman
How to get computer name?
|
What are you trying to say?
Re: get computer name -
Bussyman - 10.07.2017
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?
Re: get computer name -
AbyssMorgan - 10.07.2017
PHP код:
stock GetComputerName(playerid,name[],max_dest=sizeof(name)){
format(name,max_dest,"seriously ?");
#pragma unused playerid
}
Re: get computer name -
Logic_ - 10.07.2017
Use GPCI instead.
Re: get computer name -
coool - 10.07.2017
Quote:
Originally Posted by AbyssMorgan
PHP код:
stock GetComputerName(playerid,name[],max_dest=sizeof(name)){
format(name,max_dest,"seriously ?");
#pragma unused playerid
}

|
HAHAHA
@On-topic
sa-mp only runs one at a time, in one computer.
Re: get computer name -
Threshold - 11.07.2017
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.
Re: get computer name -
Bussyman - 11.07.2017
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