12.03.2014, 15:36
How do i make a message that will send the message to everyone expect the target it
// Send a message to everyone.
SendClientMessageToAll(-1, "add this line under any command you want it say something for all.");
return 0;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(blocked[i] == 1) continue;
SendClientMessage(playerid, -1, "This text is white");
}
|
Well i think he doesnt't want to send a message to all, but "all-1".
Try something like this: pawn Код:
|
SendMessageToAllBut(playerid, color, const text[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
if(playerid == i) continue;
SendClientMessage(i, color, text);
}
}
SendMessageToAllBut(playerid, color, const str[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
if(playerid == i) continue;
SendClientMessage(i, -1, stri);
}
TextDrawShowForAllBut(playerid, const str1[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
if(playerid == i) continue;
TextDrawSetString(Textdraw222, str1);
TextDrawShowForPlayer(i,Textdraw222);
}
|
Код:
SendMessageToAllBut(playerid, color, const str[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
if(playerid == i) continue;
SendClientMessage(i, -1, stri);
}
TextDrawShowForAllBut(playerid, const str1[])
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
if(playerid == i) continue;
TextDrawSetString(Textdraw222, str1);
TextDrawShowForPlayer(i,Textdraw222);
}
Matess and CuervO will it work like this ?? |
: error 017: undefined symbol "SendMessageToAllBut" error 029: invalid expression, assumed zero error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line

??