Dialog
#6

Use this:

PHP код:
//Useage in the format:
format (string,sizeof ( string ), "( ! ) HINT : Un dovleac a fost spawnat in zona %s.",GetPumpkinZone(p));
//The function:
stock GetPumpkinZone(p)
{
        static const 
null[] = "null";
     for(new 
i,Float:pumpkins[p][0],Float:pumpkins[p][1],Float:pumpkins[p][2]; != sizeof(gSAZones); i++ )
     {
        if(
>= gSAZones[i][SAZONE_AREA][0] && <= gSAZones[i][SAZONE_AREA][3] && >= gSAZones[i][SAZONE_AREA][1] && <= gSAZones[i][SAZONE_AREA][4] && >= gSAZones[i][SAZONE_AREA][2] && <= gSAZones[i][SAZONE_AREA][5])
        {
            return 
gSAZones[i][SAZONE_NAME];
        }
    }
        return 
null;

Reply


Messages In This Thread
Dialog - by Jimmi - 02.10.2015, 23:09
AW: Dialog - by Kaliber - 03.10.2015, 01:26
Re: Dialog - by Jimmi - 03.10.2015, 01:27
AW: Dialog - by Kaliber - 03.10.2015, 01:29
Re: Dialog - by Jimmi - 03.10.2015, 01:50
AW: Dialog - by Kaliber - 03.10.2015, 02:35

Forum Jump:


Users browsing this thread: 2 Guest(s)