[HELP] LSPD Help
#1

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

erm i wish i would help you but i didn't understand the code... try to make more comments pls.
Reply
#3

Must I post the whole script?
Reply
#4

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

i think first you need to set the person as a criminal.... then make a " for " loop to send a message to all cops.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)