Advertisement
Guest User

Knast

a guest
Jul 12th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. forward Knast();
  2.  
  3. new zeit = GetPVarInt(pID,"Knastzeit");
  4. SetTimer("Knast", zeit / 1000,false);
  5.  
  6. stock load_account (playerid)
  7. {
  8. SetTimer("Knast", GetPVarInt(playerid,"Knastzeit") / 1000,false);
  9. }
  10.  
  11. public Knast()
  12. {
  13. for(new i;i<MAX_PLAYERS;i++)
  14. {
  15. if(GetPVarInt(i,"jailed")==0)
  16. {
  17. new wert = GetPVarInt(i,"Knastzeit" )-1;
  18. SetPVarInt(i,"Knastzeit",wert);
  19. if(GetPVarInt(i,"Knastzeit") == 0)
  20. {
  21. SetPVarInt(i,"Jailed",0);
  22. SetPVarInt(i,"Zelle",0);
  23.  
  24. }
  25. return 1;
  26. }
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement