new Float:saveX[MAX_PLAYERS],Float:saveY[MAX_PLAYERS],Float:saveZ[MAX_PLAYERS];
new VagosHouse; new VagosMassacre;
if(strcmp(cmdtext,"/enter",true)==0) { if(IsPlayerInRangeOfPoint(playerid,5.0,2469.2902832031,-1649.0827636719,13.471720695496)) { SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106); SetPlayerInterior(playerid,3); GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]); } if(IsPlayerInRangeOfPoint(playerid,5.0,2230.6355,-1407.7169,24.0000)) { SetPlayerPos(playerid,1523.509887,-47.821197,1002.130981); SetPlayerInterior(playerid,2); GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]); } if(IsPlayerInRangeOfPoint(playerid,5.0,2394.7871,-1133.8131,30.7188)) { SetPlayerPos(playerid,501.980987,-69.150199,998.757812); SetPlayerInterior(playerid,11); GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]); } if(IsPlayerInRangeOfPoint(playerid,5.0,488.1916,-82.7742,998.7578)) { SetPlayerPos(playerid,963.418762,2108.292480,1011.030273); SetPlayerInterior(playerid,1); } return 1; } if(strcmp(cmdtext,"/exit",true)==0){ if(IsPlayerInRangeOfPoint(playerid,5.0,963.418762,2108.292480,1011.030273)) { SetPlayerPos(playerid,488.1916,-82.7742,998.7578); SetPlayerInterior(playerid,11); } else { SetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]); SetPlayerInterior(playerid, 0); }
//---------------------------------------------------------- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(1024)) { if(IsPlayerInRangeOfPoint(playerid,3,-1091.3252,-1613.6198,77.0530)) // Admin Area { //DOOO WHAT EVERE HERE << } } }
You could just change it from /enter to the actual enter key...which means it isnt a command, but a keypress... you want to change the 1024 to the enter key... that is currently set to the ALT KEY....
[/code] |