Turf right placed code.... [Help]
#1

Alright first of all let me say I have no problems, with the turfs I have. Its just that I believed I put them in the wrong position like before, when I put it at OnPlayerConnect, every time I disconnected and rejoined (didn't close sa-mp.exe), the turf become darker, because it re-creates it when a player connects right? So big mistake. This time I put it at "OnPlayerSpawn". Alright no problems when I compile but I know something is not right. Alright, on top of the script as usual new GZ_Zone1. Then I create it in GameModeInIt as usual. Now this is what the code is under OnPlayerSpawn, "GangZoneShowForAll(GZ_ZONE1, 0xFFFF0096);" ? Is it correct or is it gangzoneshowforplayer? I'm confused....
Reply
#2

GangZoneShowForAll is being called for everyone(a global function). So when a player spawns, the area will become darker. Use GangZoneShowForPlayer.
Reply
#3

Can you give the full script ?
Reply
#4

Alright Faisal, but what about this.... If I set to to ShowForPlayer, won't it be that every time he dies and then respawn won't the turf become darker too especially for that guy or must I destroy the turf when he dies, then it will recreate when he spawns?
Reply
#5

Alright thanks Southclaw.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)