Turfwar
#1

Hello Sa:MP

I need help now!
I have createt a gangzone
Код:
//======================
// Above OnGameModeInit:
new GangZone1;

// OnGameModeInit Insert
public OnGameModeInit() {
    GangZone1 = GangZoneCreate(2090,34, -186,846, 2627,522, 291,9469);
    return 1;
}
// Player Spawn
public OnPlayerSpawn(playerid) {
    GangZoneShowForPlayer(playerid, GangZone1, 0x00FF4096);
    return 1;
}
//======================
But now will i make that the "Team Terrorist" this gangzone conquer.
But how?
Reply
#2

There are many ways to do it. And its not realy as simple as most things. Your best bet would be to download a GM with gangzones (look for a simple one). And see how they do things. If your lucky enough someone might post here how to do it.

I'll give you a run down. Easiest way i can think of.

Put a checkpoint inside the ganzone.
When a player enters that checkpoint you could set a timer for one minute and flash the gangzone.
After that minute has passed if the player is still in the zone, stop flashing, hide the gangzone and straight away show the gangzone with the players color.

Its a very simple example but thats basically how you could do it. (not got enough time to write the code for it + i dont have the co-ords that are needed)

There are also other things you need to think of like, is the player trying to take his own turf. And for the example i give a checkpoint streamer would be nessasary.
Reply
#3

I have a downloadet But I do not understand
Reply
#4

maybe you need something like this
Reply
#5

And how i can make a war?
Help me...
Reply
#6

Help me!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)