help Invisible players
#6

Quote:
Originally Posted by _Application_
Посмотреть сообщение
will work ?
PHP код:
    if (strcmp("/inv"cmdtexttrue10) == 0)
    {
        
SetPlayerColor(playeridGetPlayerColor(playerid) & ~0xFF);
        return 
1;
    }
    
    if (
strcmp("/uninv"cmdtexttrue10) == 0)
    {
        
SetPlayerColor(playeridGetPlayerColor(playerid) | 0xFF);
        return 
1;
    } 
will only work if SetPlayerColor was used before any of these cmd's
cuz GetPlayerColor will get the color set by SetPlayerColor.
so it should work

i also suggest that you refrain from using string comparison in this day and age...
try YCMD
Reply


Messages In This Thread
help Invisible players - by _Application_ - 07.12.2014, 10:35
Re: help Invisible players - by Vince - 07.12.2014, 11:01
Re: help Invisible players - by _Application_ - 07.12.2014, 11:31
Re: help Invisible players - by CutX - 07.12.2014, 11:41
Re: help Invisible players - by _Application_ - 07.12.2014, 12:48
Re: help Invisible players - by CutX - 07.12.2014, 12:53
Re: help Invisible players - by _Application_ - 07.12.2014, 13:08
Re: help Invisible players - by _Application_ - 07.12.2014, 15:09

Forum Jump:


Users browsing this thread: 2 Guest(s)