Undzwar habe ich das nach 60spielminuten payday gibt
Aber es geht nicht
60min gespielt zeit läuft wieder runter.
PLs help
Undzwar habe ich das nach 60spielminuten payday gibt
Aber es geht nicht
60min gespielt zeit läuft wieder runter.
PLs help
Zeig mal her ohne Cod kann man nichts ferstellen !
Ansonsten kann ich sagen musst du das so haben ( in der art )
Ganz oben : forward PayDay();
Mit dem Forward wird ein neuer PayDay erstellt.
Dann zu "OnGameModeInit"
SetTimer("PayDay",360000,1);
PayDay ist der Name der oben definiert wurde . 360000 sind genau 1h . Und die 1 steht dafür , das der Timer eingestellt ist
Dann machen wir ein neues Public ! ( das kommt ganz nach unten )
public PayDay()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(i,//Deine Farbe/////,"------PayDay-------- \n Glückwunsch! \n Du hast ........$ erhalten");
GivePlayerMoney(i,///Hier schreibst du das hin , was du dem Spieler an geld zum PayDay geben möchtest zb 1500 ////);
}
return 1;
}
ok das wars im prinzip schon ich hoffe ich konnte helfen
Ich hoffe jemad kann mir hier helfen : Tankstellen sind nicht da
Das mit diesen timer
Muss ich da im Payday code auch noch was reinmachen?
nein, oben steht doch alles?
Sogar mit Erklärung..
Ich habe gf
Danke für die hilfe....
Der public payday ist:
public PayDay(i)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 19 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 19)
{
if(PlayerInfo[i][pRank] == 1)
{
PlayerMoney[i] = PlayerMoney[i] +1000;
}
if(PlayerInfo[i][pRank] == 2)
{
PlayerMoney[i] = PlayerMoney[i] +1500;
}
if(PlayerInfo[i][pRank] == 3)
{
PlayerMoney[i] = PlayerMoney[i] +2000;
}
if(PlayerInfo[i][pRank] == 4)
{
PlayerMoney[i] = PlayerMoney[i] +2500;
}
if(PlayerInfo[i][pRank] == 5)
{
PlayerMoney[i] = PlayerMoney[i] +3000;
}
if(PlayerInfo[i][pRank] == 6)
{
PlayerMoney[i] = PlayerMoney[i] +3500;
}
}
if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 12)
{
if(PlayerInfo[i][pRank] == 1)
{
PlayerMoney[i] = PlayerMoney[i] +1500;
}
if(PlayerInfo[i][pRank] == 2)
{
PlayerMoney[i] = PlayerMoney[i] +2000;
}
if(PlayerInfo[i][pRank] == 3)
{
PlayerMoney[i] = PlayerMoney[i] +2500;
}
if(PlayerInfo[i][pRank] == 4)
{
PlayerMoney[i] = PlayerMoney[i] +3000;
}
if(PlayerInfo[i][pRank] == 5)
{
PlayerMoney[i] = PlayerMoney[i] +3500;
}
if(PlayerInfo[i][pRank] == 6)
{
PlayerMoney[i] = PlayerMoney[i] +4000;
}
}
if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 18 || PlayerInfo[i][pLeader] == 2)
{
if(PlayerInfo[i][pRank] == 1)
{
PlayerMoney[i] = PlayerMoney[i] +2000;
}
if(PlayerInfo[i][pRank] == 2)
{
PlayerMoney[i] = PlayerMoney[i] +2500;
}
if(PlayerInfo[i][pRank] == 3)
{
PlayerMoney[i] = PlayerMoney[i] +3000;
}
if(PlayerInfo[i][pRank] == 4)
{
PlayerMoney[i] = PlayerMoney[i] +3500;
}
if(PlayerInfo[i][pRank] == 5)
{
PlayerMoney[i] = PlayerMoney[i] +4000;
}
if(PlayerInfo[i][pRank] == 6)
{
PlayerMoney[i] = PlayerMoney[i] +4500;
}
}
if(IsAMember(i))
{
if(PlayerInfo[i][pRank] == 1)
{
PlayerMoney[i] = PlayerMoney[i] +2000;
}
if(PlayerInfo[i][pRank] == 2)
{
PlayerMoney[i] = PlayerMoney[i] +2500;
}
if(PlayerInfo[i][pRank] == 3)
{
PlayerMoney[i] = PlayerMoney[i] +3000;
}
if(PlayerInfo[i][pRank] == 4)
{
PlayerMoney[i] = PlayerMoney[i] +3500;
}
if(PlayerInfo[i][pRank] == 5)
{
PlayerMoney[i] = PlayerMoney[i] +4000;
}
if(PlayerInfo[i][pRank] == 6)
{
PlayerMoney[i] = PlayerMoney[i] +4500;
}
}
if(PlayerInfo[i][pLeader] == 7)
{
PlayerMoney[i] = PlayerMoney[i] +8000;
}
}
if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10 || PlayerInfo[i][pLeader] == 9 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
{
if(PlayerInfo[i][pRank] == 1)
{
PlayerMoney[i] = PlayerMoney[i] +0;
}
if(PlayerInfo[i][pRank] == 2)
{
PlayerMoney[i] = PlayerMoney[i] +1200;
}
if(PlayerInfo[i][pRank] == 3)
{
PlayerMoney[i] = PlayerMoney[i] +1400;
}
if(PlayerInfo[i][pRank] == 4)
{
PlayerMoney[i] = PlayerMoney[i] +1600;
}
if(PlayerInfo[i][pRank] == 5)
{
PlayerMoney[i] = PlayerMoney[i] +1800;
}
if(PlayerInfo[i][pRank] == 6)
{
PlayerMoney[i] = PlayerMoney[i] +2000;
}
new string[128];
new zinsen;
new bankgeld;
new rent;
zinsen = PlayerInfo[i][pAccount] * PlayerInfo[i][pLevel];
bankgeld = PlayerInfo[i][pAccount];
PlayerInfo[i][pAccount] = bankgeld+zinsen;
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
new key = PlayerInfo[i][pPhousekey];
Tax += TaxValue;
PlayerInfo[i][pAccount] -= TaxValue;
PlayerInfo[i][pExp]++;
if(key != 255)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > PlayerMoney[i])
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, COLOR_WHITE, "Du konntest deine Rente nicht bezahlen. Du bist nun Obdachlos!");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
SendClientMessage(i, COLOR_GRAD2,"|===Zahltag===|");
if(PlayerInfo[i][pMember] >= 1 || PlayerInfo[i][pLeader] >= 1)
{
format(string, sizeof(string), " Lohn: $%d", PlayerMoney[i]);
SendClientMessage(i, COLOR_GRAD2, string);
SendClientMessage(i, COLOR_GRAD2,"|=================================|");
}
if(PlayerInfo[i][pAlGeld] == 1)
{
format(string, sizeof(string), " Arbeitslosengeld: $850");
SendClientMessage(i, COLOR_GRAD2, string);
SendClientMessage(i, COLOR_GRAD2,"|=================================|");
}
if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
format(string, sizeof(string), " Miete: $%d", rent);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Stromkosten: -$140");
SendClientMessage(i, COLOR_GRAD2, string);
SendClientMessage(i, COLOR_GRAD2,"|=================================|");
}
format(string, sizeof(string), " Steuern: -$%d", TaxValue);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Alter Kontostand: $%d", bankgeld);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Zinsen: $%d", zinsen);
SendClientMessage(i, COLOR_GRAD2, string);
SendClientMessage(i, COLOR_GRAD2,"|=================================|");
format(string, sizeof(string), " Neuer Kontostand: $%d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), "~y~PayDay");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerPlayMusic(i);
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pDonateRank] > 0)
{
PlayerInfo[i][pPayDayHad] += 1;
if(PlayerInfo[i][pPayDayHad] >= 5)
{
PlayerInfo[i][pExp]++;
PlayerInfo[i][pPayDayHad] = 0;
}
}
}
}
Checkprop();
return 1;
}
//edit
/payday geht auch nicht
Hab alles versucht nichts geht .
Bei mir geht payday auch nicht.