Hi,
hab mir einen Payday gescriptet aber nun bekommt man jeden Payday 2 Punkte Oo
Als ob 2 Timer zugleich gestartet wären.
public Paydaytimer(playerid)
{
new str[15];
payd[playerid]++;
format(str,sizeof(str),"%d/30",payd[playerid]);
TextDrawSetString(payday[playerid],str);
if(payd[playerid] >=30)
{
hpayday(playerid);
TextDrawSetString(payday[playerid],"0/30");
payd[playerid] = 0;
}
}
stock hpayday(playerid)
{
GivePlayerMoney(playerid,9999);
PlayerPlaySound(playerid, 1068, 0, 0, 0);
}
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid,"eingeloggt")==1)
{
SetTimer("Paydaytimer",1000*60,1);
}