[HELP] LSPD Help - 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: [HELP] LSPD Help (
/showthread.php?tid=80047)
[HELP] LSPD Help -
joeri55 - 01.06.2009
Hello guys,
I have a question.
I have a script where you can /robstore..
Now I want that if someone tries or does /robstore the cops get warned.
I am using the PEN:LS Gang script.
I am sure that I must do something inhere:
Quote:
{
if ((gTeam[playerid]) == 1)//med kill criminal
{
format(turnmes, sizeof(turnmes), "WARNING: %s, The Cops Are After You For %s Paramedic Privs Removed Reporter: %s",turned,reason,turner);
}
else
{
format(turnmes, sizeof(turnmes), "WARNING: %s, The Cops Are After You For %s. Reporter: %s",turned,reason,turner);
}
gTeam[playerid] = 4;//lawbreaker
if (flash)
{
FlashTime[playerid] = 10;
}
else
{
SetPlayerToTeamColor(playerid);
}
SendClientMessage(playerid, COLOR_RED, turnmes);
}
|
But I don't know what.. So please help me
Re: [HELP] LSPD Help -
silvan - 01.06.2009
erm i wish i would help you but i didn't understand the code... try to make more comments pls.
Re: [HELP] LSPD Help -
joeri55 - 01.06.2009
Must I post the whole script?
Re: [HELP] LSPD Help -
Correlli - 01.06.2009
Just use loop and check for all players who are cops and send them a message. If you don't understand what i just said then learn basics.
Re: [HELP] LSPD Help -
silvan - 21.08.2009
i think first you need to set the person as a criminal.... then make a " for " loop to send a message to all cops.