• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Turfs (formerly gangzones) module
#1
Hello!



I have just finished our Turf implementation into the server and I thought of posting a overview of this module and to show we haven't quit or anything!



PHP Code:
// Creates a Turf. A playerid can be passed in order to make it a player turf.

native Turf:Turf_Create(Float:minxFloat:minyFloat:maxxFloat:maxyPlayer:owner INVALID_PLAYER_ID);



// Destroys a turf.

native Turf_Destroy(Turf:turf);



// Shows a Turf to a player or players.

// Will send to all players if playerid = INVALID_PLAYER_ID.

native Turf_Show(Turf:turfcolourPlayer:playerid INVALID_PLAYER_ID);



// Hides a Turf from a player or players.

// Will send to all players if playerid = INVALID_PLAYER_ID.

native Turf_Hide(Turf:turfPlayer:playerid INVALID_PLAYER_ID);



// Flashes a Turf for a player or players.

// Will send to all players if ?playerid = INVALID_PLAYER_ID.

native Turf_Flash(Turf:turfcolourPlayer:playerid INVALID_PLAYER_ID);



// Stops a Turf from flashing for player(s).

// Will send to all players if playerid = INVALID_PLAYER_ID.

native Turf_StopFlashing(Turf:turfPlayer:playerid INVALID_PLAYER_ID); 



This is obviously different from the traditional API, but not to worry, there will be wrappers in place for this kind of stuff to make sure a normal script can be recompiled with no issues and without edits.

Another important fact that you may want to know is that every turf is in the same pool and there's a maximum of 4,294,967,295 turfs to be created from the script.

However, the client can only handle 1024 turfs at one time.
  Reply


Messages In This Thread
Turfs (formerly gangzones) module - by Josh - 2019-10-19, 04:20 PM
RE: Turfs (formerly gangzones) module - by TommyB - 2019-10-19, 04:34 PM
RE: Turfs (formerly gangzones) module - by iAmir - 2019-10-19, 06:20 PM
RE: Turfs (formerly gangzones) module - by Josh - 2019-10-19, 08:46 PM
RE: Turfs (formerly gangzones) module - by BigETI - 2019-10-19, 08:19 PM
RE: Turfs (formerly gangzones) module - by nize - 2019-10-20, 08:21 AM
RE: Turfs (formerly gangzones) module - by Nutter - 2019-10-20, 04:57 PM
RE: Turfs (formerly gangzones) module - by Tama - 2019-10-29, 11:59 AM

Forum Jump: