#define DOUBLE_EXP_ENABLED
#if defined DOUBLE_EXP_ENABLED
{
PlayerInfo[playerid][pScore] += whatever the score x2;
}
|
Add this atop of your script ....
Код:
#define DOUBLE_EXP_ENABLED Код:
#if defined DOUBLE_EXP_ENABLED
{
PlayerInfo[playerid][pScore] += whatever the score x2;
}
|
|
I Mean When The Date is Saturday Or Sunday ..The Players Get Score x2
Your Help is About Make That Manual,Not Make That Auto Change The Score ! I Mean How to GetTime at Saturday And Sunday? |
|
This will take ages to make that do that for now during the day of Saturday and Sunday there is pently of time for a quick restart (which sets it to double xp).
|
|
This will take ages to make that do that for now during the day of Saturday and Sunday there is pently of time for a quick restart (which sets it to double xp).
|
|
What the hell are you talking about? Cut the bullshit already cause you're just posting to raise your posts count. If you got nothing useful to say, don't post at all.
OP, a simple search would come up with alot of results http://forum.sa-mp.com/search.php?searchid=10487745 |
SetTimerEx("ControlQuota",60*1000,0,"d",1); //1 minute or you can give more, depends on how accurate you want to be
sTemp[quotaday] - day number
sTemp[quotadate] - date number (Save in SQL)
forward ControlQuota(tec);
public ControlQuota(tec){
#pragma unused tec
new tmpdate, tmpyear, tmpmonth, tmpday;
getdate(tmpyear,tmpmonth,tmpday);
tmpdate = (10000*tmpyear)+(100*tmpmonth)+tmpday;
if(tmpdate != sTemp[quotadate]){ //new day
sTemp[quotaday] += 1;
sTemp[quotadate] = tmpdate;
SaveQuota(); //save sTemp[quotadate] in SQL or INI
}
if(sTemp[quotaday] == 5){ //Saturday
if(!myFunct){
myFunct = true;
}
} else if(sTemp[quotaday] == 6){ //Sunday
if(!myFunct){
myFunct = true;
}
} else if(sTemp[quotaday] == 7){ //restart
sTemp[quotaday] = 0;
SaveQuota(); //save sTemp[quotadate] in SQL or INI
}
return 1;
}
/*
1 Tuesday
2 Wednesday
3 Thursday
4 Friday
5 Saturday
6 Sunday
7 => 0 Monday (restart => at restart)
*/
CMD:setquotaday(playerid,params[]){
if(isnull(params)) return SendClientMessage(playerid,-1,"››› Usage: /setquotaday <day>");
new qday;
sscanf(params,"d",qday);
if(qday < 0 || qday > 7) return SendClientMessage(playerid,-1,"››› Range 0 - 7");
sTemp[quotaday] = qday;
SaveQuota(); //save sTemp[quotadate] in SQL or INI
return 1;
}