AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I can do that this works? (https://forums.alliedmods.net/showthread.php?t=117421)

OptimizeR 02-01-2010 00:17

I can do that this works?
 
PHP Code:

new guild[33][300]
guild[INDEX] = "Player" 

And on having aimed at a player say if it he is of his in your guild or not.

example:
PHP Code:

new name[33]
get_user_name(AIMED_INDEXname32)
if (
guild[id_aimer] == name)
    
client_print(idprint_chat"User: %s |-| On Guild"name)
else
    
client_print(idprint_chat"User: %s |-| Out Guild"name


Arkshine 02-01-2010 08:31

Re: I can do that this works?
 
To check a string, you have to use equal() or equali().


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

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