AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How Do I Add Print_Chat Thing? (https://forums.alliedmods.net/showthread.php?t=146918)

ImXinR 01-03-2011 08:20

How Do I Add Print_Chat Thing?
 
Well.. Can someone tell me how should I start off with this command ,

PHP Code:

client_print(idprint_chat"[AMXX] Your Text Here.");
return 
PLUGIN_HANDLED

I don really understand the part which says "id" .

Leon_12 01-03-2011 08:46

Re: How Do I Add Print_Chat Thing?
 
id is player so it will show only on player without id it will show all players

GXLZPGX 01-03-2011 09:18

Re: How Do I Add Print_Chat Thing?
 
Quote:

Originally Posted by Leon_12 (Post 1385123)
id is player so it will show only on player without id it will show all players

In english:

id = the players index. Every player is assigned a number from 1-32, and that is the players "index." No number is used more than once.

ConnorMcLeod 01-03-2011 09:49

Re: How Do I Add Print_Chat Thing?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=22


Also, would be more correct to say that id can be 1 to maxplayer.

ImXinR 01-05-2011 00:59

Re: How Do I Add Print_Chat Thing?
 
Hmm Okay Thanks For Explaining ! :D
@ConnorMcLeod Thanks! Your link is really useful :D!


All times are GMT -4. The time now is 02:14.

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