Guest User

Untitled

a guest
May 25th, 2011
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.87 KB | None | 0 0
  1. stock LoadHouseCPs()
  2. {
  3.     for(new h = 0; h < sizeof(HouseInfo); h++)
  4.     {
  5.         if(HouseInfo[h][hOwned] == 0)
  6.         {
  7.             Create3DTextLabel("\n\n[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
  8.             hhCPID=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
  9.         }
  10.         if(HouseInfo[h][hOwned] == 1)
  11.         {
  12.             Create3DTextLabel("\n\n[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
  13.             hhCPID=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
  14.         }
  15.     }
  16.     return 1;
  17. }
  18. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  19. {
  20.     if(checkpointid == hhCPID)
  21.     {
  22.         TogglePlayerDynamicCP(playerid, hhCPID, true);
  23.         return 1;
  24.     }
  25.     return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment