Raised This Month: $ Target: $400
 0% 

Help with define Worldspawn in shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PWA
Junior Member
Join Date: May 2010
Old 05-24-2010 , 04:17   Help with define Worldspawn in shop
Reply With Quote #1

I am making my shop and i want to define the worldspawn
example --> CT died with worldspawn, because he fall down of map, or smtg like that, but T gets points because, CT died with worldspawn, how to define this worldspawn??

if(!world_spawn )??

help guys

Last edited by PWA; 05-24-2010 at 09:15.
PWA is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-24-2010 , 05:13   Re: help
Reply With Quote #2

You should Search because this was discussed many times before. Thank you.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-24-2010 , 06:26   Re: help
Reply With Quote #3

PHP Code:
public plugin_init {
    
register_event("DeathMsg""eDeath, "a");
}

public eDeath() {
    new iKillerID = read_data(1);
    if(!iKillerID) {
        // add points to T
    }

__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-24-2010 , 09:06   Re: help
Reply With Quote #4

Your topic title must be descriptive.
Fix it before posting again.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
PWA
Junior Member
Join Date: May 2010
Old 05-24-2010 , 09:08   Re: help
Reply With Quote #5

am, what i need to search? worldspawn?
And that code, dont work, because i need what killed ct- example like Traps, or smtg like that..
PWA is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-24-2010 , 09:23   Re: Help with define Worldspawn in shop
Reply With Quote #6

PHP Code:
#include <cstrike>
public plugin_init 
    
register_event("DeathMsg""eDeath""a"); 


public 
eDeath() { 
    new 
iKillerID read_data(1); 
    new 
iVictimID read_data(2);
    if(!
iKillerID && cs_get_user_team(iVictimID) == CS_TEAM_CT) { 
        
// add points to T 
    


__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!

Last edited by Brreaker; 05-24-2010 at 10:17.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
PWA
Junior Member
Join Date: May 2010
Old 05-24-2010 , 09:31   Re: Help with define Worldspawn in shop
Reply With Quote #7

No no no
If player has died with world / trigger_hurt
I need this!
how can i Add points when CT Die with trigger_hurt to T?
PWA is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-24-2010 , 10:11   Re: Help with define Worldspawn in shop
Reply With Quote #8

When !killer => CT died with trigger_hurt or worldspawn, because no player killed them but they still died...
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 05:15.


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