Jump to content
MakeWebGames

Gang Alliance


Recommended Posts

This mod was requested by Bennyh789 on this topic

Gang Alliance

PHP 5.6 compliant

Edit yourgang.php, add to the bottom (above the endpage..)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Edit the function gang_staff_wardeclare()

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add below

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Still in gang_staff_wardeclare()

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add above

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add the gang staff cases

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

SQLs

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Edit attack.php, add this where the rest of the if() statements are (towards the top of the file)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 
And finally, the CSS;

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Link to comment
Share on other sites

Very Nice MTG. I don't have mccrap any more but i'm sure this is great.. I do have a suggestion tho. Maybe make the alliance timed? Something like gang a and gang b are in an alliance for 30 days? On top of that have it somewhere so it says x amount of days remaining in your alliance

Link to comment
Share on other sites

Very Nice MTG. I don't have mccrap any more but i'm sure this is great.. I do have a suggestion tho. Maybe make the alliance timed? Something like gang a and gang b are in an alliance for 30 days? On top of that have it somewhere so it says x amount of days remaining in your alliance

Continuing on from my original post..

* You will need my time2readable() function found in one of my gang mods

SQLs

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Edit yourgang.php

In the gang_staff_alliance_decide() function

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In the gang_staff_alliance_view()

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Add above

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Edit your five minute cron [Default setup - cron_fivemins.php]

At the bottom of the file

Add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by Magictallguy
Fixed a code tag
Link to comment
Share on other sites

  • 2 weeks later...

also noticed you went from guilds to gangs was getting an error was like wth i didnt notice it for a couple minutes :D just started testing, along with your house modification, other then that great job just make sure you stick to one word :p either guilds or gangs but i would suggest gangs, seeing as it is an mccode modification

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...