16.10.2012, 11:20
when im exiting /exit from lspd hq then it falling me from sky and it says i left business
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLocal] != 999) //in house
{
if(IsAtHouseExit(playerid))
{
if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
format(string, sizeof(string), "* %s has left the house.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pVirtualWorld] = 0;
PlayerInfo[playerid][pLocal] = 999;
return 1;
}
}
if(PlayerInfo[playerid][pInBiz] != 255) //in a biz
{
if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
format(string, sizeof(string), "* %s has left the business.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pVirtualWorld] = 0;
PlayerInfo[playerid][pLocal] = 999;
PlayerInfo[playerid][pInBiz] = 255;
return 1;
}