SendTeamMessage
#1

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");
}
}
Reply
#2

SendTeamMessage is not a default function...
Reply
#3

what you mean?
Reply
#4

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.
Reply
#5

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

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
        }
    }
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)