18.05.2014, 14:47
PHP код:
new Checkpoint[MAX_PLAYERS];
public OnPlayerEnterDynamicCP(playeird, checkpointid)
{
if(checkpointid == CheckpointDriver[0]) // Checks if the checkpointid equals to Checkpoint[0]
{
if(Checkpoint[playerid] == 0)
{
SCM(playerid, -1, "Good job!");
Checkpoint[playerid] = 1;
ShowPlayerCP............. // line that showing a CheckpointDriver[1]
}
}
if(checkpointid == CheckpointDriver[1]) // Checks if the checkpointid equals to Checkpoint[1]
{
if(Checkpoint[playerid] == 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "This is \"Checkpoint[1]\"");
GivePlayerMoney(playerid, + 200);
}
}
return 1;
}