AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with define Worldspawn in shop (https://forums.alliedmods.net/showthread.php?t=127724)

PWA 05-24-2010 04:17

Help with define Worldspawn in shop
 
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 )?? :D

help guys :)

Alka 05-24-2010 05:13

Re: help
 
You should Search http://forums.alliedmods.net/images/misc/menu_open.gif because this was discussed many times before. Thank you.

Brreaker 05-24-2010 06:26

Re: help
 
PHP Code:

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

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



Exolent[jNr] 05-24-2010 09:06

Re: help
 
Your topic title must be descriptive.
Fix it before posting again.

PWA 05-24-2010 09:08

Re: help
 
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.. :|

Brreaker 05-24-2010 09:23

Re: Help with define Worldspawn in shop
 
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 
    




PWA 05-24-2010 09:31

Re: Help with define Worldspawn in shop
 
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?

Brreaker 05-24-2010 10:11

Re: Help with define Worldspawn in shop
 
When !killer => CT died with trigger_hurt or worldspawn, because no player killed them but they still died...


All times are GMT -4. The time now is 05:15.

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