13.11.2013, 17:51
Hello, it's probaly extremely simple but I just can't find it so quick and I really need it right now, my command to enter any property is /enter and /exit, how do I get it working if i'm at the entrance I can press space to enter/exit?
Part of code:
Hopefully anybody can help me! Thanks!
Part of code:
Код:
if(strcmp(cmd, "/enter", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:shax, Float:shay, Float:shaz; new Float:shbx, Float:shby, Float:shbz; new Float:shcx, Float:shcy, Float:shcz; GetVehiclePos(EnterableShamals[0], shax, shay, shaz); GetVehiclePos(EnterableShamals[1], shbx, shby, shbz); GetVehiclePos(EnterableShamals[2], shcx, shcy, shcz); for(new i = 0; i < sizeof(HouseInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) { if(GetPlayerVirtualWorld( playerid) == 0) { if(HouseInfo[i][hLocked] == 0 || PlayerInfo[playerid][pScrew] >= 1) { if(PlayerInfo[playerid][pMask] == 1) {