Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward Knast();
- new zeit = GetPVarInt(pID,"Knastzeit");
- SetTimer("Knast", zeit / 1000,false);
- stock load_account (playerid)
- {
- SetTimer("Knast", GetPVarInt(playerid,"Knastzeit") / 1000,false);
- }
- public Knast()
- {
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i,"jailed")==0)
- {
- new wert = GetPVarInt(i,"Knastzeit" )-1;
- SetPVarInt(i,"Knastzeit",wert);
- if(GetPVarInt(i,"Knastzeit") == 0)
- {
- SetPVarInt(i,"Jailed",0);
- SetPVarInt(i,"Zelle",0);
- }
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement