This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Failing to collect terrorists at round start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Al3
Member
Join Date: Sep 2015
Location: Bulgaria
Old 09-16-2015 , 03:48   Failing to collect terrorists at round start
Reply With Quote #1

Hey,

I am mostly noticed as a C programmer (by license), but I somehow find "Pawn" as a great language to program in. Anyway here is a little problem regarding a cs16 plug-in I started some minutes ago.

For test purposes, I want to show HUD messages to all CTs once the round starts.
Even better (by the look of optimization) is if this happens only once at the beginning not on every round start.
Because my imminent task will be to change CTs weapon models. (I will try with get weapon entity and then entity set model).
Here's what I have for now:

PHP Code:
public round_start()
{
    new 
players [32], nCTi
    
    get_players
(playersnCT"ae""CT")
    
    for(
0<= nCTi++)
    {
        
set_hudmessage(25525500.660.006.024.0)
        
show_hudmessage(players[i], "V A L I D A T E D")
    }

And yes I included the ns inc file for the round_start forward.
And yet, it doesn't appear to be working.
I don't usually ..like seeking for help, but Pawn as well as amxmod programming is still somewhat new to me so and any help is much appreciated.

Last edited by Al3; 09-16-2015 at 04:03.
Al3 is offline
Send a message via Skype™ to Al3
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-16-2015 , 06:50   Re: Failing to collect terrorists at round start
Reply With Quote #2

You can't use ns.inc for counter strike, instead read this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Al3
Member
Join Date: Sep 2015
Location: Bulgaria
Old 09-16-2015 , 07:46   Re: Failing to collect terrorists at round start
Reply With Quote #3

All right then, I'm gonna call it as event.

Not sure what "Not for counter-strike" means though, but neither that it matters.

Thank you, programme.
Al3 is offline
Send a message via Skype™ to Al3
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-16-2015 , 12:49   Re: Failing to collect terrorists at round start
Reply With Quote #4

Quote:
Not sure what "Not for counter-strike" means though, but neither that it matters.
There are more games that AMXX support, not only Counter-Strike 1.6, for example DOD, NS, TFC etc. ns.inc is to be used in natural selection game and not in counter strike.
__________________
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 01:28.


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