Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock LoadHouseCPs()
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- Create3DTextLabel("\n\n[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
- hhCPID=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
- }
- if(HouseInfo[h][hOwned] == 1)
- {
- Create3DTextLabel("\n\n[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
- hhCPID=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
- }
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == hhCPID)
- {
- TogglePlayerDynamicCP(playerid, hhCPID, true);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment