Guest User

Untitled

a guest
Jul 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if(!strcmp(cmdtext, "/ahausaufzu", true))
  2. {
  3. if(PlayerInfo[playerid][pAdmin] >= 3 && Adminmode[playerid])
  4. {
  5. for(new i = 0; i<MAX_HOUSES; i++)
  6. {
  7. if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
  8. {
  9. if(HouseInfo[i][hLocked])
  10. {
  11. HouseInfo[i][hLocked] = 0;
  12. SendClientMessage(playerid, Grey, "Haus aufgeschlossen!");
  13. return 1;
  14. }
  15. else if(!HouseInfo[i][hLocked])
  16. {
  17. HouseInfo[i][hLocked] = 1;
  18. SendClientMessage(playerid, Grey, "Haus abgeschlossen!");
  19. return 1;
  20. }
  21. return 1;
  22. }
  23. }
  24. }
  25. return 1;
  26. }
Add Comment
Please, Sign In to add comment