SA-MP Forums Archive
SendTeamMessage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SendTeamMessage (/showthread.php?tid=72493)



SendTeamMessage - Justsmile - 08.04.2009

What is here wrong? pls help me one more Time

if(PlayerInfo[playerid][pLevel] != 1)
{
format(string, sizeof(string), "** WARNUNG: %s fдhrt ohne Fьhrerschein * ",playerid);
SendTeamMessage(1, COLOR_LIGHTBLUE, string);
SendTeamMessage(2, COLOR_LIGHTBLUE, string);
SendTeamMessage(3, COLOR_LIGHTBLUE, string);
SendTeamMessage(14, COLOR_LIGHTBLUE, string);
SendTeamMessage(15, COLOR_LIGHTBLUE, string);
}
else
{
WantedPoints[playerid] += 1;
SetPlayerCriminal(playerid,255, "Fahren ohne Fьhrerschein");
}
}


Re: SendTeamMessage - Weirdosport - 08.04.2009

SendTeamMessage is not a default function...


Re: SendTeamMessage - Justsmile - 08.04.2009

what you mean?


Re: SendTeamMessage - Weirdosport - 08.04.2009

If you were to go on the wiki and look at the list of functions, you wouldn't find SendTeamMessage. It is probably a custom function from an include somewhere.


Re: SendTeamMessage - Justsmile - 08.04.2009

OK, how can I send messages to a cop? Can you make an example? maybe?


Re: SendTeamMessage - Weirdosport - 08.04.2009

You're obviously using some kind of include, or a loadof stocks or something, because alot of the code you have there is "custom".

Things like: SetPlayerCriminal aren't standard.

If for example the Cops were Teamid 0: (They probably are not)

pawn Код:
for(new a=0; a<MAX_PLAYERS; a++)
    {
    if(GetPlayerTeam(playerid) == 0)
        {
        //Do Stuff
        }
    }



Re: SendTeamMessage - Justsmile - 08.04.2009

ok, very thanks. Maybe you can you help me one more time. I want to have a tractor with trailer, is there a FS i dont find anything.