18.05.2014, 14:42
pawn Код:
public OnPlayerEnterDynamicCP(playeird, checkpointid)
{
if(checkpointid == CheckpointDriver[0]) // Checks if the checkpointid equals to Checkpoint[0]
{
SCM(playerid, -1, "Good job!");
}
if(checkpointid == CheckpointDriver[1]) // Checks if the checkpointid equals to Checkpoint[1]
{
SendClientMessage(playerid, 0xFFFFFFFF, "This is \"Checkpoint[1]\"");
GivePlayerMoney(playerid, + 200);
}
return 1;
}