27.06.2018, 04:12
Quote:
Under OnPlayerKeyStateUpdate
When a player presses enter key Код:
if(Garage[i][garageLock] == 1) return SendClientMessage(playerid, -1, "{C9C9C9}[SERVER]{FFFFFF} You cannot access the garage as it has been locked by it's owner."); Make sure you change the codes to the variables you used.. |
Ignore others if they discourage you, I'm a noob, still trying to make my own gamemode :P
And, you need to check if the guy pressing enter is the owner..
Don't know which MySQL plugin you're using.. so first get the OWNER'S name from the field, if the guy pressing enter is the owner of that, allow him to enter, and then an "ELSE" statement, and then my code further.