Jump to content
  • 0

pomoc Peniazie


Miroslav

Dotaz

5 odpovědí na tuto otázku

Recommended Posts

  • 0

a kde to mas umisteny? to je sice hezky ze to mas v mode, ale pokud to mas treba v OnGamemodeInit tak se nedivim ze ti to nejde :d

Link to comment
Share on other sites

  • 0

Mám to takto :)

public settime(playerid){
if(IsPlayerConnected(playerid)){
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Datum, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Hodiny, string);

for ( new i;i<MAX_PLAYERS_EX;i++){
SetPlayerScore(i,GetPlayerMoney(i));
}

if(Mute[playerid] == true){
if(ToMuteTime[playerid]<= gettime()){
Mute[playerid] = false;
ToMuteTime[playerid] = 0;
SendClientMessage(playerid, COLOR_GREEN, "Už môžeš znovu písať !");
}
}
}
return 1;
}
Link to comment
Share on other sites

  • 0

Kámo vím co je tam za chybu, ten AntiCheat má svůj vlastní příkaz na zjištění peněz BS_GetPlayerMoney aj SetPlayerMoney. GivePlayerMoney zkus se podívat podle mně je v tom chyba ;)

zkus

public OnPlayerUpdate(playerid)

}

SetPlayerScore(playerid, GetPlayerMoney(playerid)); // samozřejmně GetPlayerMoney nahradíš tu funkci anticheatu.

return 1;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...