Advertisement
Guest User

Untitled

a guest
Oct 31st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public Beduerfnisse()
  2. {
  3. for(new i = 0; i < MAX_PLAYERS; i++)
  4. {
  5. if(IsPlayerConnected(i))
  6. {
  7. if(pInfo[i][Hunger] >= 1)
  8. {
  9. pInfo[i][Hunger] -= random(2);
  10. }
  11. else SendClientMessage(i, COLOR_YELLOW, "Du bist am Verhungern!");
  12.  
  13. if(pInfo[i][Durst] >= 1)
  14. {
  15. pInfo[i][Durst] -= random(2);
  16. }
  17. else SendClientMessage(i, COLOR_YELLOW, "Du bist am Verdursten!");
  18.  
  19. if(pInfo[i][Harndrang] >= 1)
  20. {
  21. pInfo[i][Harndrang] -= random(3);
  22. }
  23. else SendClientMessage(i, COLOR_YELLOW, "Du hast dir in die Hosen gepinkelt!");
  24. }
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement