Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmdtext, "/ahausaufzu", true))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3 && Adminmode[playerid])
- {
- for(new i = 0; i<MAX_HOUSES; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
- {
- if(HouseInfo[i][hLocked])
- {
- HouseInfo[i][hLocked] = 0;
- SendClientMessage(playerid, Grey, "Haus aufgeschlossen!");
- return 1;
- }
- else if(!HouseInfo[i][hLocked])
- {
- HouseInfo[i][hLocked] = 1;
- SendClientMessage(playerid, Grey, "Haus abgeschlossen!");
- return 1;
- }
- return 1;
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment