Advertisement
Guest User

Untitled

a guest
May 12th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.76 KB | None | 0 0
  1. if(strcmp(cmd, "/exit", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             for(new i = 0; i <  sizeof(HouseInfo); i++)
  6.             {
  7.                 //printf("House :%d",i);
  8.                 if (IsPlayerInRangeOfPoint(playerid,8.0,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && PlayerInfo[playerid][pLocal] == i)
  9.                 {
  10.                     SetPlayerInterior(playerid,0);
  11.                     SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
  12.                     PlayerInfo[playerid][pInt] = 0;
  13.                     PlayerInfo[playerid][pLocal] = 255;
  14.                     SetPlayerVirtualWorld(playerid,0);
  15.                     if(HouseInfo[i][hHel] == 1)
  16.                     {
  17.                         new Float:tempheal;
  18.                         GetPlayerHealth(playerid,tempheal);
  19.                         if(tempheal < 100.0)
  20.                         {
  21.                             SetPlayerHealth(playerid,100.0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement