[REQ]Example script.
#1

system worlds, by command, with a limit, you should receive only the messages of the world where you are.

example please ??
Reply
#2

pawn Код:
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect

//OnPlayerText Code:
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            {
                if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
                {
                    SendClientMessage(i, 0xFF0000FF, text);
                    return 0;
                }
                return 0;
            }
        }
Just set the Worlds veriable in your Command

Have a nice Day!
Reply
#3

Quote:
Originally Posted by Tigerkiller
Посмотреть сообщение
pawn Код:
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect

//OnPlayerText Code:
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            {
                if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
                {
                    SendClientMessage(i, 0xFF0000FF, text);
                    return 0;
                }
                return 0;
            }
        }
Just set the Worlds veriable in your Command

Have a nice Day!
thanks, example command ?
Reply
#4

anyone help ?
Reply
#5

pawn Код:
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect

public OnPlayerText(playerid, text[])
{
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            {
                if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
                {
                    SendClientMessage(i, 0xFF0000FF, text);
                    return 0;
                }
                return 0;
            }
        }
     return 1;
}
Nothing was hard in it =___=
the above guy mentioned it perfectly though
Reply
#6

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
pawn Код:
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect

public OnPlayerText(playerid, text[])
{
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            {
                if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
                {
                    SendClientMessage(i, 0xFF0000FF, text);
                    return 0;
                }
                return 0;
            }
        }
     return 1;
}
Nothing was hard in it =___=
the above guy mentioned it perfectly though
I answer, how to create the command, use zcmd + sscanf.

but solved, thanks all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)