21.05.2009, 21:43
Код:
#define CP_SF 0 #define CP_LS 1 #define CP_LV 2 new gPlayerCheckpointStatus[MAX_PLAYERS];
Код:
public OnPlayerConnect(playerid) { gPlayerCheckpointStatus[playerid] = CP_SF; SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0); gPlayerCheckpointStatus[playerid] = CP_LS; SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0); gPlayerCheckpointStatus[playerid] = CP_LV; SetPlayerCheckpoint(playerid, xxx.x'x'x', yyy.y'y'y', zzz.z'z'z', 5.0); ...
Код:
public OnPlayerEnterCheckpoint(playerid) { switch (gPlayerCheckpointStatus[playerid]) { case CP_SF: { //any action } case CP_LS: { //any action } case CP_LV: { //any action } } return 1; }