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

Bomb planted?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 07-12-2012 , 15:30   Bomb planted?
Reply With Quote #1

Hey,

How would I check who planted the bomb and who defused?

Last edited by Santaaa; 07-12-2012 at 15:32.
Santaaa is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-12-2012 , 15:37   Re: Bomb planted?
Reply With Quote #2

Nvm, found.
Santaaa is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-12-2012 , 15:37   Re: Bomb planted?
Reply With Quote #3

Take a look at: http://forums.alliedmods.net/showthread.php?t=40164
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 07-12-2012 , 15:47   Re: Bomb planted?
Reply With Quote #4

Look at this example:

Code:
#include <amxmodx> #include <csx> public bomb_defused(Defuser) {     new szName[32];     get_user_name(Defuser, szName, charsmax(szName));     client_print(0, print_center, "%s defused the bomb.", szName); } public bomb_planted(Planter) {     new szName[32];     get_user_name(Planter, szName, charsmax(szName));         client_print(0, print_center, "%s planted the bomb.", szName); }
__________________

Last edited by kramesa; 07-20-2012 at 10:05.
kramesa is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-12-2012 , 18:12   Re: Bomb planted?
Reply With Quote #5

Quote:
Originally Posted by kramesa View Post
Look at this example:

Code:
#include <amxmodx> #include <csx> public bomb_defused(Defuser) {     new szName[32];     get_user_name(Defuser, szName, charsmax(szName));     client_print(0, "%s defused the bomb.", szName); } public bomb_planted(Planter) {     new szName[32];     get_user_name(Planter, szName, charsmax(szName));         client_print(0, "%s planted the bomb.", szName); }
Your example would error. Also the thread starter did state that he already found the solution.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-13-2012 , 04:24   Re: Bomb planted?
Reply With Quote #6

^^
Santaaa is offline
Irena
BANNED
Join Date: Jul 2012
Old 07-13-2012 , 06:00   Re: Bomb planted?
Reply With Quote #7

Quote:
Originally Posted by kramesa View Post
Look at this example:

Code:
#include <amxmodx> #include <csx> public bomb_defused(Defuser) {     new szName[32];     get_user_name(Defuser, szName, charsmax(szName));     client_print(0, "%s defused the bomb.", szName); } public bomb_planted(Planter) {     new szName[32];     get_user_name(Planter, szName, charsmax(szName));         client_print(0, "%s planted the bomb.", szName); }


it worked thanks dude. i was in need for this code too but i didnt found it on internet. I am just here by chance. cool
Irena is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-13-2012 , 06:17   Re: Bomb planted?
Reply With Quote #8

Quote:
Originally Posted by Irena View Post
it worked thanks dude. i was in need for this code too but i didnt found it on internet. I am just here by chance. cool
Let's assume it worked after you fixed it.

Code:
client_print(0, print_center, "%s planted the bomb.", szName);
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 07-20-2012 , 10:04   Re: Bomb planted?
Reply With Quote #9

Wow, sorry! Thanks hornet.
__________________
kramesa is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-20-2012 , 13:22   Re: Bomb planted?
Reply With Quote #10

Take a look at the funcwiki krasmesa.
And here for the syntax of client_print : http://www.amxmodx.org/funcwiki.php?go=func&id=22

Quote:
client_print ( index, type, const message[], ... )
__________________
Pawn ? Useless

Last edited by Aooka; 07-20-2012 at 13:23.
Aooka 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 16:55.


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