Raised This Month: $51 Target: $400
 12% 

[SOLVED]Would this work?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 01-26-2014 , 00:10   [SOLVED]Would this work?
Reply With Quote #1

Would this line work in this code:

GetClientName(GetClientAimTarget(client, true), target, sizeof(target));

PHP Code:
decl String:nick[32];
decl String:target[32];
    
GetClientName(clientnicksizeof(nick));
GetClientName(GetClientAimTarget(clienttrue), targetsizeof(target));
    
CPrintToChatAll("{green}%s and %s kissed each other, HA GAAAAY"nicktarget);
return 
Plugin_Handled
Dont even ask why im doing this... my vips have some fucked up minds. Pardon my french.

Thanks!
__________________
SourcePawn Coding Level: Novice

Last edited by DJ Data; 01-26-2014 at 02:42.
DJ Data is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-26-2014 , 01:08   Re: Would this work?
Reply With Quote #2

Quote:
Originally Posted by DJ Data View Post
{green}%s and %s kissed each other, HA GAAAAY
Grow up.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 01-26-2014 , 01:10   Re: Would this work?
Reply With Quote #3

Please learn to read properly.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-26-2014 , 01:16   Re: Would this work?
Reply With Quote #4

Quote:
Originally Posted by DJ Data View Post
Please learn to read properly.
I can. You don't read about me making jokes about black people, or Swiss. And I'm the German here.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 01-26-2014 , 01:19   Re: Would this work?
Reply With Quote #5

Are you really offended about the oh-so-popular quote "Hah Gay" from Community?
Team Fortress 2 is a game where mostly 10-16 year old kids spend their weekends on. Adding a bit of humor keeps things going.
Im sorry but maybe you should grow up instead of posting unnecessary "help".

Nor am i Swiss, i just live here.
__________________
SourcePawn Coding Level: Novice

Last edited by DJ Data; 01-26-2014 at 01:23.
DJ Data is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-26-2014 , 02:01   Re: Would this work?
Reply With Quote #6

Quote:
Originally Posted by DJ Data View Post
[...]Im sorry but maybe you should grow up instead of posting unnecessary "help".[...]
Great...
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 01-26-2014 , 02:24   Re: Would this work?
Reply With Quote #7

As i said, just keep those useless posts going...
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-26-2014 , 02:34   Re: Would this work?
Reply With Quote #8

Quote:
Originally Posted by Dr. Greg House View Post
I can. You don't read about me making jokes about black people, or Swiss. And I'm the German here.
You did not read properly is a fact.



Quote:
Originally Posted by DJ Data View Post
Would this line work in this code:

GetClientName(GetClientAimTarget(client, true), target, sizeof(target));

PHP Code:
decl String:nick[32];
decl String:target[32];
    
GetClientName(clientnicksizeof(nick));
GetClientName(GetClientAimTarget(clienttrue), targetsizeof(target));
    
CPrintToChatAll("{green}%s and %s kissed each other, HA GAAAAY"nicktarget);
return 
Plugin_Handled
Dont even ask why im doing this... my vips have some fucked up minds. Pardon my french.

Thanks!
It will work if you aim at a valid player, otherwise it will throw errors.

PHP Code:

new target;
if ( (
target ClientAimTarget(clienttrue)) != -1)
{
    
CPrintToChatAll("{green}%N and %N kissed each other, HA GAAAAY"clienttarget);

And you may want to get the distance also I suppose. GetVectorDistance()
Mathias. is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-26-2014 , 02:34   Re: Would this work?
Reply With Quote #9

Note: Your opinion does not define general usefulness.

Quote:
Originally Posted by Black-Rabbit View Post
You did not read properly is a fact.[...]
How so?
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 01-26-2014 at 02:36.
Dr. Greg House is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-26-2014 , 02:35   Re: Would this work?
Reply With Quote #10

Quote:
Originally Posted by Dr. Greg House View Post
Note: Your opinion does not define general usefulness.
Just read back his first post and think about everything that just happen.
Mathias. 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 15:11.


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