Raised This Month: $ Target: $400
 0% 

Spawn client [FM]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-11-2013 , 01:19   Spawn client [FM]
Reply With Quote #1

Hello!

This simple code not works correctly:
PHP Code:
public plugin_init()
{
set_task(15.0"simple_spawn"3423354)
}

public 
simple_spawn()
{
    
    new 
players[32], inum
    get_players
(playersinum"h")
        
    for (new 
0inum; ++i)
    {
            if(
cs_get_user_team(players[i]) == CS_TEAM_CT || CS_TEAM_CT)
            {
            
dllfunc(DLLFunc_Spawni)
            }
    }
    
remove_task(3423354)

_____________________________________________ _________________________
And with this version i have an errors in server's console:
PHP Code:
public plugin_init()
{
set_task(15.0"simple_spawn"3423354)
}

public 
simple_spawn(id)
{
            
dllfunc(DLLFunc_Spawnid)
            
remove_task(3423354)

Code:
L 01/11/2013 - 10:17:04: [FAKEMETA] Invalid entity
L 01/11/2013 - 10:17:04: [AMXX] Run time error 10 (plugin "test.amxx") (native "dllfunc") - debug not enabled!
L 01/11/2013 - 10:17:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
_____________________________________________ _________________________
In this ver. all works fine. Paradox..

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say ss""ssfc")
    
// Add your code here...
}

public 
ssfc(id) {
    
dllfunc(DLLFunc_Spawnid)

How i can execute function DDLFuncf_Spawn for all players ?
__________________
sorry my bad english...

Last edited by alonelive; 01-11-2013 at 02:03.
alonelive is offline
 



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 13:47.


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