/me and /do colour?
#4

Quote:
Originally Posted by George_Fratelli
Посмотреть сообщение
Most RP servers use a proximity detector or something similar. If you don't know what that means, it basically makes the colour of the text darker or lighter depending on how close you're to the player doing the command.

So pinpointing a colour would be hard.
For /me you do not need much of hassle with prox detector... Just like I've done with my old script all you need to do is set it to be COLOR_ME ((aka color for /me command defined already))

PHP код:
CMD:me(playeridparams[])
{
    new 
name[MAX_PLAYER_NAME], str[128];
    
GetPlayerName(playeridnamesizeof(name));
    if(
isnull(params))
        return 
SendClientMessage(playerid,COLOR_SYNTAX -1,"[SYNTAX]: /me [Action]");
    
format(str,sizeof(str),"*%s %s",nameparams);
    
ProxDetector(30.0playeridstrCOLOR_MECOLOR_MECOLOR_MECOLOR_MECOLOR_ME);
    return 
1;

Its rather useless and too much of a hassle to play around with darker color of purple when one is enough for that type of commands.
Reply


Messages In This Thread
/me and /do colour? - by DarrenReeder - 04.08.2013, 23:26
Re: /me and /do colour? - by iNorton - 04.08.2013, 23:31
Re: /me and /do colour? - by George_Fratelli - 04.08.2013, 23:35
Re: /me and /do colour? - by iNorton - 04.08.2013, 23:43

Forum Jump:


Users browsing this thread: 2 Guest(s)