Police knows the robbing place
#1

Hey,

I'm trying to do a script which will warn the police cops the place where the gangsta is robbing the business.
So a checkpoint will be shown on the minimap and a message will be displayed for cops.

The error is that the cops aren't prevented, no message and no checkpoints appeared.

Here is the script.

pawn Код:
for (i = MIN_PLAYERID; i < MAX_PLAYERS_CURRENT+1; i++)
                {
                        if(PlayerInfo[i][pMember] == FACT_LSPD)
                        {
                            format(string, sizeof(string), "Position de la boutique qui se fait braquer : %f, %f, %f.", PlayerInfo[playerid][pOldX], PlayerInfo[playerid][pOldY], PlayerInfo[playerid][pOldZ]);
                            fact_sendMsg(FACT_LSPD, string, COLOR_ALERT);
                            SetPlayerCheckpoint(i, PlayerInfo[playerid][pOldX], PlayerInfo[playerid][pOldY], PlayerInfo[playerid][pOldZ]-10, 1);
                            gps_currentDest[i] = 5;
                            SendClientMessage(i, COLOR_ALERT, "[Alerte] Une boutique se fait braquer");
                        }
                }
Thanks
Reply
#2

bump
Reply
#3

bump help please
Reply
#4

Код:
for (i = 0; i < MAX_PLAYERS_CURRENT+1; i++)
                {
                        if(PlayerInfo[i][pMember] == FACT_LSPD)
                        {
                            format(string, sizeof(string), "Position de la boutique qui se fait braquer : %f, %f, %f.", PlayerInfo[playerid][pOldX], PlayerInfo[playerid][pOldY], PlayerInfo[playerid][pOldZ]);
                            fact_sendMsg(FACT_LSPD, string, COLOR_ALERT);
                            SetPlayerCheckpoint(i, PlayerInfo[playerid][pOldX], PlayerInfo[playerid][pOldY], PlayerInfo[playerid][pOldZ]-10, 1);
                            gps_currentDest[i] = 5;
                            SendClientMessage(i, COLOR_ALERT, "[Alerte] Une boutique se fait braquer");
                        }
                }
And also check if the LSPD Member has his /radio on and is on /duty.

I'm not sure if the fix I did will work but try.
Reply
#5

Ehm what have u changed ? ^^
Reply
#6

I changed:

Код:
for (i = MIN_PLAYERID; i < MAX_PLAYERS_CURRENT+1; i++)
For this:

Код:
for (i = 0; i < MAX_PLAYERS_CURRENT+1; i++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)