27.04.2015, 09:16
Quote:
- Ohh buddy, you forgot to add your command(kidnap) Player_NextKidnapp[playerid] = true;
Just add it and it will be work.Without editing the variable, checkpoint cannot figure out that you are near the checkpoint. |
PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if (Player_NextKidnapp{playerid})
{
Player_NextKidnapp{playerid} = true;
DisablePlayerRaceCheckpoint(playerid);
SetPlayerHealth(Player_NextKidnapp[playerid], 0);
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
GivePlayerMoney(playerid, 25000+random(113452));
return 1;
}
return 1;
}