Adding team color to map and restricted team base -
FunnyBear - 10.11.2014
Hey,
I'm making with both an army and a swat base and I was wondering how I can add the team color to that base
The army color is green, so on the map the army base will be in a green square. SWAT is light blue/aqua so it will be the same color on the map where the base is.
2) Also is there a way to put up a message that says, 'Leave this base', (like a textdraw) if someone else enters the base. So if the civilian enters the army base it will give some time to leave and if they don't leave, they wanted level will go up.
3) I want the team cars (army tanks/etc.) to be only accessible by that team, and if someone else enters the vehicle it will eject them out and give them a message
Thanks,
hope someone can help me
Re: Adding team color to map and restricted team base -
Kwarde - 10.11.2014
1- About this map colors; consider using GangZones;
https://sampwiki.blast.hk/wiki/GangZoneCreate (related functions you'll need are at the bottom)
2- Use something like this; forum.sa-mp.com/showthread.php?t=229423

. Explaination is on that topic (or you could find another one, because that one is older and I was worse at scripting back then)
3- Use vehicle-variables with team ID, and assign those ID teams to players aswell, and as soon as they enter/try to enter a vehicle when the player team Id and vehicle team ID, eject them and send a message
Re: Adding team color to map and restricted team base -
FunnyBear - 11.11.2014
Quote:
Originally Posted by Kwarde
1- About this map colors; consider using GangZones; https://sampwiki.blast.hk/wiki/GangZoneCreate (related functions you'll need are at the bottom)
2- Use something like this; forum.sa-mp.com/showthread.php?t=229423  . Explaination is on that topic (or you could find another one, because that one is older and I was worse at scripting back then)
3- Use vehicle-variables with team ID, and assign those ID teams to players aswell, and as soon as they enter/try to enter a vehicle when the player team Id and vehicle team ID, eject them and send a message
|
Hey, I've added the gangzone on the map, but it is just a solid colour. Is there a way to make it transparent? I've put the transparency level down on the gang zone creator but it doesn't work
Re: Adding team color to map and restricted team base -
Kwarde - 11.11.2014
As far as I know, the only way to do this is by changing the ALPHA of the HEX color.. I used a gangzone a couple of times (quite some time ago) and that did work for me.
(0xRRGGBBAA - 0x{Red}{Green}{Blue}{Alpha}). FF would be solid, 00 would be invisible. If you'd want a transparant green colour, you should try something like 0x00FF0088 or something. Please let me know if it worked.