// hideCheckpointForPlayer(checkpointid, playerid) bool CCheckpointModuleNatives::HideForPlayer(EntityId checkpointId, EntityId playerId) { CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->HideForPlayer(playerId); return true; } return false; }
// hideCheckpointForPlayer(checkpointid, playerid) SQInteger CCheckpointNatives::HideForPlayer(SQVM * pVM) { EntityId checkpointId; EntityId playerId; sq_getentity(pVM, -2, &checkpointId); sq_getentity(pVM, -1, &playerId); CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->HideForPlayer(playerId); sq_pushbool(pVM, true); return 1; } sq_pushbool(pVM, false); return 1; }