AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if player have different steam id (https://forums.alliedmods.net/showthread.php?t=155504)

Tonda 04-23-2011 04:00

if player have different steam id
 
Hi, i need this:

one player steam id != next player steam id

How can i use this?

Why? because sometimes have player crash PC and if he come to the server, he have fake client on server with same nickname and mine server control with this dont work.

Thx

reinert 04-23-2011 04:13

Re: if player have different steam id
 
PHP Code:

new szSteamID1[33], szSteamID2[33]
get_user_auth(idszSteamID132)
get_user_auth(targetszSteamID232)
if( !
equali(szSteamID1szSteamID2) ) 


Tonda 04-23-2011 07:03

Re: if player have different steam id
 
compile error, this dont work :-/

reinert 04-23-2011 07:26

Re: if player have different steam id
 
What it says ?

Tonda 04-23-2011 07:37

Re: if player have different steam id
 
this is good?

PHP Code:

new szSteamId35 ]  
get_user_authididszSteamId34 );

if (
szSteamId[iPlayer] != szSteamId[id])
{



reinert 04-23-2011 07:41

Re: if player have different steam id
 
yes, but where u hook / define iPlayer and id ?

Tonda 04-23-2011 07:43

Re: if player have different steam id
 
PHP Code:

for(new iPlayer=1iPlayer<=g_iMaxPlayersiPlayer++)
    { 

and what is better way?

get_user_userid

or

get_user_authid

?

ProIcons 04-23-2011 08:43

Re: if player have different steam id
 
userid

reinert 04-23-2011 08:55

Re: if player have different steam id
 
It depends what are you trying to do.

Tonda 04-23-2011 09:17

Re: if player have different steam id
 
Quote:

Originally Posted by reinert (Post 1455988)
It depends what are you trying to do.

need condition: first player isnt second player :)


All times are GMT -4. The time now is 20:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.