CreateDynamicCP
#1

PHP код:
forward CreateCPHouses();
public 
CreateCPHouses()
{
    for(new 
0MAX_HOUSES++)
    {
        
HouseInfo[i][hCheckPoint] = CreateDynamicCP(HouseInfo[i][hSpawnX], HouseInfo[i][hSpawnY], HouseInfo[i][hSpawnZ], 1.5, -1, -1, -15.0);
    }
    print(
"#2 Houses Created.");
}
public 
OnGameModeInit()
{
       
CreateCPHouses();
       return 
1;
}
forward OnPlayerEnterDynamicCP(playeridcheckpointid);
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    
printf("%d"checkpointid);
    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        for(new 
0MAX_HOUSES++)
        {
            new 
addr[256];
            new 
msg[1024];
              
GetHouseAddress(i,addr);
            if(
HouseInfo[i][hPrice] != 0)
            {
                if(
IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hSpawnX], HouseInfo[i][hSpawnY], HouseInfo[i][hSpawnZ]))
                {
                    if(
checkpointid == HouseInfo[i][hCheckPoint])
                    {
                        if(
HouseInfo[i][hOwner] == 1)
                        {
                            if(
HouseInfo[i][hRentable] == 1)
                            {
                                
format(msgsizeof(msg), "[%s]",addr);
                                
SendClientMessage(playeridCOLOR_GREENmsg);
                            }
                        }
                    }
                }
            }
        }
    }
    print(
"OnPlayerEnterDynamicCP");
    return 
1;

not seen
what is wrong ?
Reply


Messages In This Thread
CreateDynamicCP - by BlonduX - 26.10.2015, 15:54
Re : CreateDynamicCP - by StreetRP - 26.10.2015, 16:00
Re: Re : CreateDynamicCP - by BlonduX - 26.10.2015, 16:04
Re: Re : CreateDynamicCP - by BlonduX - 26.10.2015, 16:17
Re: CreateDynamicCP - by BlonduX - 27.10.2015, 11:35
Re: CreateDynamicCP - by Mencent - 27.10.2015, 11:43
Re: CreateDynamicCP - by BlonduX - 27.10.2015, 12:26
Re: CreateDynamicCP - by BlonduX - 30.10.2015, 14:47

Forum Jump:


Users browsing this thread: 2 Guest(s)