• 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
#2
lovely !
  Reply
#3
NICE release REPﯯ!!!!!!
  Reply
#4
gangzones > turfs

sorry bro -REP
  Reply
#5
josh deleted my gangzone code so im not friends with him any more
  Reply
#6
Uses inf pool



[Image: github-samp-icon.png]
  Reply
#7
(2019-10-19, 07:52 PM)Southclaws Wrote: josh deleted my gangzone code so im not friends with him any more



You've had long enough to complete it!
  Reply
#8
so sexi, this thread made me quit nofap
  Reply
#9
lovely, can't wait to see more!!!!!!
  Reply
#10
approved, great to see progress
[Image: logo200.png]

  Reply
#11
It would be good to have something like OnPlayerEnter/LeaveTurf aswell
  Reply
#12
(2019-10-27, 09:52 PM)BloodMaster Wrote: It would be good to have something like OnPlayerEnter/LeaveTurf aswell


Yeah something like this
PHP Code:
forward OnPlayerEnterTurf(playeridTurf:turf);
forward OnPlayerLeaveTurf(playeridTurf:turf); 
???? ???? ????? ?? ???????? ???? ?????, ?? ???? ???? ?? ?????? ?? ??? ???? ???? ???? ?? ??? ???? ??? ???? ??? ?? ?? ?????? ??????





  Reply
#13
wonderfully beautiful!
  Reply
#14
Good job
[Image: Sasinosoft.png]

  Reply


Forum Jump: