Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward WorldBounds();
- public WorldBounds()
- {
- static Float: g_f[3], iPlayerTick;
- foreach(Player, i)
- {
- if (pInfo[i][Spawned])
- {
- for (new x = 0; x < MAX_WORLD_BOUNDRIES; x++)
- {
- if (g_pBounds[x][bIsActive])
- {
- if (!(IsPlayerInArea(i, g_pBounds[x][fMaxX], g_pBounds[x][fMinX], g_pBounds[x][fMaxY], g_pBounds[x][fMinY])))
- {
- switch(iPlayerTick)
- {
- case 0: // Their first "tick" outside of LS
- {
- SendClientMessage(i, COLOR_RED, "You have 10 seconds to return to Los Santos.");
- }
- case 10: // 10 seconds is up
- {
- // ???
- }
- }
- iPlayerTick++;
- }
- else
- {
- // They've returned back inside the world boundries, reset this.
- if (iPlayerTick > 0)
- {
- iPlayerTick = 0;
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement