Help with command
#2

Function:
pawn Код:
Name( playerid )
{
    new s_p_N[ MAX_PLAYER_NAME ];
   
    GetPlayerName( playerid, s_p_N, sizeof s_p_N );
    return( s_p_N );
}
Command:
pawn Код:
if(strcmp(cmd, "/boxevent", true) == 0)
{
    if( !strcmp( Name( playerid ), "NAME", false ) )
    {
        if( boxevent == 0 )
        {
            boxevent = 1;
            BroadCast( COLOR_WHITE, "   write(/joinboxevent)!" );
           
        }
        else
        {
            boxevent = 0;
            BroadCast( COLOR_GREEN, "   deactive." );
        }
    }
    return 1;
}
PS: Is Case-Sensitive
Reply


Messages In This Thread
Help with command - by boyan96 - 19.02.2012, 18:19
Re: Help with command - by aRoach - 19.02.2012, 18:23
Re: Help with command - by boyan96 - 19.02.2012, 18:31
Re: Help with command - by aRoach - 19.02.2012, 18:35
Re: Help with command - by Twisted_Insane - 19.02.2012, 18:37
Re: Help with command - by Konstantinos - 19.02.2012, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)