18.05.2014, 14:50
Don't quite know what you were asking for, but here is my go at it, although it is manual, tell me if you don't want it manual.
Код HTML:
public OnPlayerEnterDynamicCP(playeird, checkpointid)
{
if(checkpointid == Checkpoint[0]) // Checks if the checkpointid equals to Checkpoint[0]
{
SendClientMessage(playerid, 0xFFFFFFFF, "This is \"Checkpoint[0]\"");
/*
GivePlayerMoney(playerid, + 100);
}
if(checkpointid == Checkpoint[1]) // Checks if the checkpointid equals to Checkpoint[1]
{
SendClientMessage(playerid, 0xFFFFFFFF, "This is \"Checkpoint[1]\"");
GivePlayerMoney(playerid, + 200);
SetPlayerCheckpoint(playerid, xcoords,ycoords,zcoords, 3.0); // Manual way to set the players checkpoint
}
return 1;
}

