Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/exit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new i = 0; i < sizeof(HouseInfo); i++)
- {
- //printf("House :%d",i);
- if (IsPlayerInRangeOfPoint(playerid,8.0,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && PlayerInfo[playerid][pLocal] == i)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 255;
- SetPlayerVirtualWorld(playerid,0);
- if(HouseInfo[i][hHel] == 1)
- {
- new Float:tempheal;
- GetPlayerHealth(playerid,tempheal);
- if(tempheal < 100.0)
- {
- SetPlayerHealth(playerid,100.0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement