get computer name
#1

Hi,

How to get computer name?
Reply
#2

Quote:
Originally Posted by Bussyman
Посмотреть сообщение
How to get computer name?
What are you trying to say?
Reply
#3

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?
Reply
#4

PHP код:
stock GetComputerName(playerid,name[],max_dest=sizeof(name)){
    
format(name,max_dest,"seriously ?");
    
#pragma unused playerid

Reply
#5

Use GPCI instead.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)