Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTimer("PaydayT",1000,1);(1000 zum testen ;d)
- OnPlayerConnect
- pStats[playerid][pPayday] = 60;
- Hier sollte eigentlich die zeit bis zum payday im TD angezeigt werden
- stock UpdateStats(playerid)
- {
- new string[150];
- new jtext[25];
- if(pStats[playerid][pJob] == 0) { jtext = "Arbeitslos"; }
- else if(pStats[playerid][pJob] == 1) { jtext = "Mechatroniker"; }
- else if(pStats[playerid][pJob] == 2) { jtext = "Taxifahrer"; }
- else if(pStats[playerid][pJob] > 2) { jtext = "Arbeitslos"; }
- else if(pStats[playerid][pJob] == 99) { jtext = "Hartz IV"; }
- format(string, sizeof(string),"Level: ~r~%d",GetPlayerScore(playerid));
- TextDrawSetString(Stats4[playerid],string); // Level Update
- format(string, sizeof(string),"Job: ~r~%s",jtext);
- TextDrawSetString(Stats2[playerid],string); // Job Update
- format(string, sizeof(string),"Payday in: %d",pStats[playerid][pPayday]);
- TextDrawSetString(Stats3[playerid],string); // Punkte Update
- }
- Payday public
- forward PaydayT(playerid);
- public PaydayT(playerid)
- {
- if(pStats[playerid][pPayday] > 0)
- {
- pStats[playerid][pPayday]--;
- if(pStats[playerid][pPayday] == 0)
- {
- SendClientMessage(playerid,0x0000FFFF,"======================================================================");
- if(IsACop(playerid))
- {
- if(pStats[playerid][pRank] == 1)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}1100%");
- }
- if(pStats[playerid][pRank] == 2)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}1500%");
- }
- if(pStats[playerid][pRank] == 3)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}1800%");
- }
- if(pStats[playerid][pRank] == 4)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}2100%");
- }
- if(pStats[playerid][pRank] == 5)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}2400%");
- }
- if(pStats[playerid][pRank] == 6)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Gehalt: {00FF00}4000%");
- }
- }
- SendClientMessage(playerid,0x0000FFFF,"======================================================================");
- pStats[playerid][pPayday] = 60;
- }
- }
- return 1;
- }
- Laden:
- pStats[playerid][pPayday] = GetPVarInt(playerid, "Payday");
- Speichern:
- INI_WriteInt(Acc,"Payday",pStats[playerid][pPayday]);
Advertisement
Add Comment
Please, Sign In to add comment