/buygarage spam
#2

Код:
   for(new h = 0; h < sizeof(GarageInfo); h++) (This is the number of garages on the server)
    {
        if(GarageInfo[h][gOwned] == 0 ) (This means how many of them are not owned on the server)
        {
            if(IsPlayerInRangeOfPoint(playerid,2.0,GarageInfo[h][gExteriorX], GarageInfo[h][gExteriorY], GarageInfo[h][gExteriorZ]) )
            {
            }
            else
            {
                SendClientMessage(playerid, 0x33CCFFA, " You are not at a garage.");  (SendClientMessage will be called many times because if you have 2 not owned garages on the server, than it will call it 2 times, if there are 100 garages not owned than it will call this 100 times)
            }
Read the red text in the code If you still don't understand i will try to explain to you again
Reply


Messages In This Thread
/buygarage spam - by Jermi - 03.07.2013, 19:14
Re: /buygarage spam - by NeroX98 - 03.07.2013, 19:20
Re: /buygarage spam - by Jermi - 03.07.2013, 19:24
Re: /buygarage spam - by Zigonja - 03.07.2013, 19:37
Re: /buygarage spam - by Jermi - 03.07.2013, 19:39
Re: /buygarage spam - by Jermi - 03.07.2013, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)