Raised This Month: $ Target: $400
 0% 

client_print


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-15-2014 , 10:49   Re: client_print
Reply With Quote #1

Code:
client_print(index, print_type, "message" )

To print to all players use 0 as index. A problem in your code is that your name string has only 18 cells but it should have 32 cells, so increase it's size. Also, please post your full code, because we can't know what are you trying to do.

To move a player you need to play with his origins:
Code:
new Float: vecOrigin[ 3 ]; pev(index, pev_origin, vecOrigin)
Code:
vecOrigin[ 0 ] = X AXIS
vecOrigin[ 1 ] = Y AXIS
vecOrigin[ 2 ] = Z AXIS
Then, decide in which direction you want to move( x,y,z ) and increase the value by a(this is the number that you want to add). If you want to move in the X direction add a on his current position.
Code:
vecOrigin[ 0 ] += a set_pev(index, pev_origin, vecOrigin)
__________________

Last edited by HamletEagle; 11-15-2014 at 10:50.
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:34.


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