Help with few things.
#1

Hello guys, its me again . I have few questions about how to make some things.

1. Well I would like to know how to change my /me command radius, so it wont be heard all over LS

2. How to hide player icons from the map, so nobody will MG (making a RP serv)

3. How to add turf colours into the map(if its somehow releated to pawno even)

4. How to lock a skin for some person.

-Thank you.
Reply
#2

1. How about giving us the /me command first?

2. Put
pawn Код:
ShowPlayerMarkers( 0 );
under
pawn Код:
public OnGameModeInit()
3. -

4. -
Reply
#3

Oh here yo ugo the /me command:

Код:
		if(!strcmp(cmdtext, "/me", true, 3))
{
        if(!cmdtext[3])return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /me [action]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        SendClientMessageToAll(0x33CCFFAA, str);
        return 1;
}
And thank you with helping to hide the player marks
Reply
#4

pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
{
        if(!cmdtext[3])return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /me [action]");
        new str[128];
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        for( new i; i < MAX_PLAYERS; i++ )
        {
            if( IsPlayerConnected( i ) )
            {
                  if( IsPlayerInRangeOfPoint( i, 15.0, X, Y, Z )
                  {
                       GetPlayerName(playerid, str, sizeof(str));
                       format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
                       SendClientMessagel(i, 0x33CCFFAA, str);
                  }
            }
        }
        return 1;
}
This should work. Now, you can edit the range at any time, changing the 15.0 to higher or lower values.
Reply
#5

Guys, I found out how to make the radar of mine to become with set colours but one more question, how do I get the coordinates of the whole turf I need, Ill ill use /save ill need to run around the whole map, and it aint garaunteed that it will colour up all the area I need, so is there some way to get cooridnates of full hood?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)