[Ajuda] Ajuda text
#1

Boa tarde tem como me ajudar/ensinar como eu transformo um text em comando tipo assim

Код:
	if( text[ 0 ] == '@' )
	{
 		if( aInfo[ playerid ][ Admin ] == 1 )
   		{
			strmid( tmp, text, 1, strlen( text ));
	    	if( !strlen( tmp ))
	 		{
				SendClientMessage( playerid, COLOR_ERRO, "| ERRO | Uso correto: @ [ Mensagem ]" );
				return 1;
	       	}
	    	else
	      	{
	        	format( gstring, sizeof( gstring ), "~p~ ] ~w~%s ~p~ ]", tmp );
	         	GameTextForAll( gstring, 5000, 3 );
	     	}
	      	return 0;
        }
	}
Quero transformar ele pra outro comando tipo /A
Reply
#2

PHP код:
CMD:a(playeridparams[])
{
    if( 
aInfo[playerid][Admin] == 1)
    {
        if(!
strlen(params))
            return 
SendClientMessage(playeridCOLOR_ERRO"| ERRO | Uso correto: /a [ Mensagem ]" );

        static 
gstring[70];
        
format(gstringsizeofgstring ), "~p~ ] ~w~%s ~p~ ]"params);
         
GameTextForAll(gstring50003);
    }
    return 
true;

Reply
#3

Nгo deu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)