• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 1.X] Battlefield Event (4 teams version)

worthdavi

Member
Joined
Aug 17, 2019
Messages
23
Solutions
1
Reaction score
22
Location
Brazil
GitHub
worthdavi
A random fake profile posted the event made by me without the credits and with missing archives, so I decided to post the complete event.
Hope you guys will like. :)

Some real pictures of the event (the pictures from the fake's post is fake either - funny, no?)

1590862919661.png

1590862935955.png

To block outfit changing inside the Battlefield, on player.cpp, after:

C++:
if (outfit->premium && !isPremium()) {
        return false;
    }

... paste this:

C++:
int32_t value;
    if (getStorageValue(81723, value)){
        sendTextMessage(MESSAGE_EVENT_ADVANCE, "You cannot change your outfit inside the Battlefield.");
        return false;
    }



Credits:
@worthdavi (developer)
@RadBR (map author)
 

Attachments

  • Battlefield (4 teams version).zip
    52.9 KB · Views: 142 · VirusTotal
I think the outfit part should be done through a script.
Maybe choose the condition option to set a standard outfit, so nobody can change it while at the event.
 
I think the outfit part should be done through a script.
Maybe choose the condition option to set a standard outfit, so nobody can change it while at the event.

This event is old, I didnt know how to block the outfit changing inside the event. Now there are many ways to do that. You can choose the one that you like. Haha. But thank you!
 
Back
Top