05.10.2013, 12:26
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.
Thanks
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");
}
}