Raised This Month: $ Target: $400
 0% 

question about Players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-08-2013 , 05:27   Re: question about Players
Reply With Quote #3

Quote:
Originally Posted by JusTGo View Post
how we can help and you not giving us some information post the code or maby you are not cheking if player alive/valid/connected..
How can i check if the player is alive/valid/connected


PHP Code:
public Ham_PlayerKillediVictimiAttackershouldgibid 
{    
    new 
players[32], num
    get_players
(playersnum"ae""TERRORIST")

    if (
num == 1)
    
StopGame();

Should it be:

PHP Code:
public Ham_PlayerKillediVictimiAttackershouldgibid 
{
    if( !
is_user_aliveid ) )
        return 
HAM_IGNORED;

    new 
players[32], num
    get_players
(playersnum"ae""TERRORIST")

    if (
num == 1)
    
StopGame();

__________________
JailBreak & HNS

Last edited by MrKiller2010; 09-08-2013 at 05:35.
MrKiller2010 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 19:14.


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