This is a revised version of the Team System (http://forum.vc-mp.org/?topic=32.0) snippet posted by Fjose earlier these days. Some people seem to have various problems with the snippet and debugging it wasn't too easy. So I decided to rewrite it and see if it fixes the problem. Only a few small tests were made on this script so make sure to report any bugs to me.
// The code is available at PasteBin to preserve formatting: http://pastebin.com/YS3ACjhH
Available commands:
- teamup <partener-name> Send a team-up request to a player.
- splitup Leave your current partner.
- denyreq <partener-name> Deny the team-up request from a player.
- denyall Deny all the team-up requests made to you.
- acceptreq <partener-name> Accept the team-up request from a specific player.
- acceptany Randomly accept any team up requests made to you.
- flushreq Flush/delete/revoke your team-up request made to a player.
- playsolo Block all team-up requests and chose to play solo.
- partner Get the name of your current partner.
The code was done in a hurry and some features are missing. Therefore if you have any suggestions please make a request and I'll see what I can do.
Why are you always in a hurry, lol? Anyways your Team Script looks better than the previous one although I was able to debug the previous script for Warchief & EFE too.
Quote from: Honey on Oct 29, 2014, 04:23 PMWhy are you always in a hurry, lol?
I have other things to do and VC:MP scripting is my top priority. I play with it from time to time when I at the computer and I have a few minutes to spare :D
"This paste has been removed".
Re- paste S.L.C.
Quote from: KraTO$ on Oct 29, 2014, 05:12 PM"This paste has been removed".
Re- paste S.L.C.
It works good for me.
Quote from: KraTO$ on Oct 29, 2014, 05:12 PM"This paste has been removed".
Re- paste S.L.C.
Works for me :-\ But here you go: justpaste.it/vc-mp-team-system (http://justpaste.it/vc-mp-team-system)