#1

I did a system of cassette but I did a little protection but besides that I see that it rarely works.
So this protection if you're near a home check to see if it's yours or not. If she lets you put your tape deck and if not you send a message.
Not working. help me please!

PHP код:
        for(new 0<  sizeof(HouseInfo); i++)
        {
            if(
PlayerToPoint(50playeridHouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
            {
                
InRangeHouse[playerid] = 1;
                if(
PlayerInfo[playerid][pHouseKey] == i)
                {
                    
HouseID[playerid] = i;
                }
            }
        }
        if(
InRangeHouse[playerid] == 1)
        {
            if(
PlayerInfo[playerid][pHouseKey] == HouseID[playerid]) { }
            else return 
SendClientMessage(playeridCOLOR_WHITE"Nu poti pune un casetofon in raza unei case daca nu esti tu propietarul acesteia.");
        } 
Reply
#2

Help me please.
Reply
#3

"If she lets you put your tape deck and if not you send a message." what that sentence means?
Reply
#4

If you are within range of a home, will send a notification message.
Excuse my English.

//
This system check if you're in range of a home. If you and not your home does not let you put radio.
But it works.
Reply
#5

PHP код:
for(new iMAX_HOUSESi++){
     if(
IsPlayerInRangeOfPoint(playerid,10.0,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) &&
     
HouseInfo[i][hOwner]==PlayerInfo[playerid][pSQLID]){
          
//you are near house
          
return 1;
     }
}
//you are not near house 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)