Raised This Month: $ Target: $400
 0% 

Checking player's name?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-18-2007 , 18:32   Re: Checking player's name?
Reply With Quote #1

Code:
client_cmd(id, "comand #1"); client_cmd(id, "comand #2");

or you may need a delay:
Code:
client_cmd(id, "comand #1");   set_task(0.1, "comand2");   public comand2() {      client_cmd(id, "comand #2"); }
something to that effect.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 07-19-2007 , 00:20   Re: Checking player's name?
Reply With Quote #2

You're making this more difficult than it needs to be:

Code:
client_cmd(id, "name Arion;wait;name L0lo")

OR maybe even ...

client_cmd(id, "name Arion;name L0lo")
stupok is offline
Arion
Senior Member
Join Date: Mar 2007
Old 07-20-2007 , 10:36   Re: Checking player's name?
Reply With Quote #3

Quote:
Originally Posted by Rolnaaba View Post
Code:
client_cmd(id, "comand #1"); client_cmd(id, "comand #2");


or you may need a delay:
Code:
client_cmd(id, "comand #1"); set_task(0.1, "comand2"); public comand2() { client_cmd(id, "comand #2"); }

something to that effect.
I tried that, but every time it changes for the second time, it changes a user info, who calls again the function client_infochanged(), so it's change the name again, and again, and again xD


Quote:
Originally Posted by stupok69 View Post
You're making this more difficult than it needs to be:

Code:
client_cmd(id, "name Arion;wait;name L0lo")

OR maybe even ...

client_cmd(id, "name Arion;name L0lo")

Yay, that works! But I needed to put 2 waits to work ("name Arion; wait; wait; name L0Lo").. but from time to time it changes the name again, maibe because a info of the player has changed.. Isn't there a way to use client_connect or client_putinserver instead of client_infochanged? Or to use a condition so the function will run only one time?

Arion is offline
Send a message via MSN to Arion
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 21:28.


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