soon, kinda busy atm, continuing tomorrow maybe (if i get the time)
fixed 2 bugs:
-Possible glitch in the lotto
-Typing mistake that could mess up the whole registration - login system (this bug wasn't in the released version)
added objects for a skyroad (wich will be used as event)
I can't test now =/ there are some problems with san andreas on my pc, in both vista and xp.. hope to find a solution fast
k, i managed to fix the prob.
What i did now:
-added skyroad event (including cars) , also tested
Im making an additional configuration file, just for the gamemode
This to enable everyone to adjust settings, disable events, objects, messages, etc. without having to know pawn code
Just started it, so couldn't do a lot yet :p
There will be a file "DWMconfig.ini"
it will be easy to configure:
Code:
//
//
// DWM Funmode Standard Config
vehiclesenabled=1 //enables vehicles on the server
jamieobjectsenabled=1 //enables stunt objects made by Jamie thanks
//
//
//
//
// DWM Funmode Event System Config
//
lottery_event_on=1 //enable lottery event switch
lotteryminprize=20 //minimum lotto price (20 = 20000)
lotterymaxprize=80 //maximum lotto price (80 = 80000)
//
//
//
skyroad_event_on=1 //enables skyroad event
//
all settings with enabled are 0 or 1 (0 = disabled, 1 = enabled)
i will continue this feauture later, ill go get some sleep now :p
Oh, maybe, later.. we might also use this feature to use different modes in 1 Gamemode (for example DM and TDM can be perfect in 1 gamemode, with a switch like this for example: "Game=2 //1=TDM , 2=DM")
Grtz
made antimoneyhack that will warn all online admins (not kick/ban)
if anyone wants to check the code for possible glitches, bugs, errors, its allowed :p
please report any problems with this code to me
Code:
public moneycheck()
{
KillTimer(moneychecktimer);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(safelogged[i]==0 && logged [i]==1)//check to see if player just logged in
{
safelogged[i]=1;
ignoremoneycheck[i]=1;
}
if(logged[i]==1 && adminlevel[i]>=1)//check if its an admin
{
ignoremoneycheck[i]=1;
}
if(ignoremoneycheck[i]==0)
{
money2[i]=GetPlayerMoney(i);
if((money2[i]-money1[i])>=100000)
{
new hackername[50];
GetPlayerName(i,hackername,sizeof(hackername));
new message[256];
format(message, sizeof(message), "[HACKSHIELD] %s made more then 100K in 5 seconds. Possible Cheat", hackername);
SendMessageToAdmins(COLOR_LIGHTBLUE,message);
format(message, sizeof(message), "[HACKSHIELD] Use '/check %s' to check his stats.", hackername);
SendMessageToAdmins(COLOR_LIGHTBLUE,message);
}
}
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
ignoremoneycheck[i]=0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
money1[i]=money2[i];
}
moneychecktimer = SetTimer("moneycheck",5000,1);
return 1;
}
Yo guyz :drinks_no
made some more easy-to-config stuff
i made a little system that sends random messages provided in msg.ini ingame each X minutes.
Configuration in DWMconfig.ini:
Code:
/////////////////////////////////////////////////////////////////////////////
// AutoMessage System Config ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
automsg=1 //enables automatic random messages (msg.ini)
msgtime=5 //time between each message (in minutes)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
Configuration in msg.ini:
Code:
/////////////////////////////////////////////////////////////////////////////
//DWM Funmode by bram debouvere //
//All rights reserved //
/////////////////////////////////////////////////////////////////////////////
//This file is used to set the messages that can be sent automaticly //
//each X minutes. A random message will be selected //
/////////////////////////////////////////////////////////////////////////////
//Do not use any special characters - or it might crash //
/////////////////////////////////////////////////////////////////////////////
msg1=Thanks for playing this server
msg2=Do not forget to check out www.ragezone.com
msg3=Message3
msg4=Message4
msg5=Message5
msg6=Message6
msg7=Message7
msg8=Message8
msg9=Message9
msg10=Message10
.. like you can see everything will be easy to configure
oh, and maybe i might release a beta soon (if i have some time.. i can't promise anything, i really have lots of work atm :punch: )