forward payday(playerid);
SetTimer("payday",360000,1);
public payday()
{
for(new i=0; i<MAX_PLAYERS;i++)
{
new PlayerScore = GetPlayerScore(i);
if(PlayerScore < 0)
{
GivePlayerMoney(i,5000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GameTextForPlayer(i,"Payday",5000,1);
GivePlayerMoney(i,-200);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 1");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $5000");
SendClientMessage(i,0xFFFF00FF,"Stromkosten: 200$");
return 1;
}
else if(PlayerScore <1 )
{
GivePlayerMoney(i,10000);
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,-200);
GameTextForPlayer(i,"Payday",5000,1);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 2-3");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $10000");
SendClientMessage(i,0xFFFF00FF,"Stromkosten: 200$");
return 1;
}
else if(PlayerScore <3 )
{
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,25000);
GivePlayerMoney(i,-200);
GameTextForPlayer(i,"Payday",5000,1);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 4-6");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $25000");
SendClientMessage(i,0xFFFF00FF,"Stromkosten: 200$");
return 1;
}
else if(PlayerScore <6)
{
GivePlayerMoney(i,-200);
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,50000);
GameTextForPlayer(i,"Payday",5000,1);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 7-9");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $50000");
SendClientMessage(i,0xFFFF00FF,"Stromkosten: 200$");
return 1;
}
else if(PlayerScore <9 )
{
GivePlayerMoney(i,-200);
SetPlayerScore(i,GetPlayerScore(i)+1);
GivePlayerMoney(i,100000);
GameTextForPlayer(i,"Payday",5000,1);
SendClientMessage(i,0xFFFF00FF,"-----Payday-----");
SendClientMessage(i,0xFFFF00FF,"Score: 10-~");
SendClientMessage(i,0xFFFF00FF,"Verdienst: $100000");
SendClientMessage(i,0xFFFF00FF,"Stromkosten: 200$");
return 1;
}
}
return 1;
}
Aus meinem GM