Jump to content
  • 0

Intrebare /hm


|FlashGun|

Question

Deci vreau sa fac o comanda /hm (healme) la mai multe spawn-uri. Problema mea este ca daca adaug comanda /hm de mai multe ori in game mode, merge doar intr-un singur loc de spawn aceasta comanda. Cum as putea face sa mearga in mai multe locuri? Acum sa va arat cum faceam:

[pawn]if(strcmp(cmdtext, "/hm", true) == 0)

    {

    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062)) //aa

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");

    }

    else

    {

        SendClientMessage(playerid, 0xE60000FF, "Nu esti in zona de spawn!");

    }

    return 1;

    }

if(strcmp(cmdtext, "/hm", true) == 0)

    {

    if(IsPlayerInRangeOfPoint(playerid, 122,-2427.6863,1037.9819,50.3906)) //sfps

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");

    }

    else

    {

        SendClientMessage(playerid, 0xE60000FF, "{FF0000}Nu esti in zona de spawn!");

    }

    return 1;

    }[/pawn]

Fara reclama in semnatura!

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

Nu vezi ca e if? Sau nu stii ca if inseamna daca? Si acolo daca asa, altfel daca...

if(strcmp(cmdtext, "/hm", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062)) //aa
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");
    }
    else if(IsPlayerInRangeOfPoint(playerid, 122,-2427.6863,1037.9819,50.3906)) //sfps
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");
    }
    else
    {
        SendClientMessage(playerid, 0xE60000FF, "{FF0000}Nu esti in zona de spawn!");
    }
    return 1;
    }

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

Am pus ce ai zis tu si imi da erori

[pawn]D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1152) : error 017: undefined symbol "GREEN"

D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1167) : error 017: undefined symbol "GREEN"

D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1260) : error 017: undefined symbol "VehicleName"

D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1260) : error 001: expected token: ";", but found "]"

D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1260) : error 029: invalid expression, assumed zero

D:\de toate\SAMP\Romania Fantasy Stunt\gamemodes\RO.pwn(1260) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

6 Errors.

[/pawn]

Fara reclama in semnatura!

Link to comment
Share on other sites

CMD:hm(playerid, params[])
{
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 404.8082,2448.4775,16.1368))
	{
	    SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 2118.8127,-2626.3044,13.6103))
	{
 		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -1467.242553,-208.593795,19.070312))
	{
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 1583.712890,1450.693969,10.831033))
	{
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -2335.8875,-1626.1935,483.3552))
	{
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -527.418701,2023.649047,47.490310))
	{
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
		return 1;
	}
    	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 1857.1230,-2281.7593,17.0903))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -2633.8022,1359.0215,6.6751))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 1374.3136, -257.4903, 18.3436))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 834.037170, 269.238159, 709.190002))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 851.836975, -2246.758056, 662.570007))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 2410.961669,4172.320312,54.480434))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 1413.6228, 2730.4304, 10.8703))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -214.542678, -8175.392578, 35.225547))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 1841.7723, -3129.0222, 71.7619))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 3267.1531, -2449.8621, 90.8472))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -192.1480, -103.3305, 2.6739))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 560.0731,-1871.9779,4.1871))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -1973.711059, 287.046234, 35.171875))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, 2499.548583, -1684.674194, 13.429053))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//--------------------------------------------------------------------------
	if(IsPlayerInRangeOfPoint(playerid, 20, -276.953033, 1557.448364, 75.359375))
	{
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
	}
	//---------------------------------------------------------------------------
	else return SendClientMessage(playerid, COLOR_GREEN, "{F6FF00}You are not in {0026FF}spawn zone{F6FF00}!");
}

pune asta in locul acelei comanda si iti setezi tu spawnu-l

Link to comment
Share on other sites

Alte erori..Cristi

[pawn]D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 017: undefined symbol "cmd_hm"

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.[/pawn]

Linia 648 fiind aceasta:

[pawn] CMD:hm(playerid, params[])[/pawn]

Fara reclama in semnatura!

Link to comment
Share on other sites

Alte erori..Cristi

[pawn]D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 017: undefined symbol "cmd_hm"

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero

D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Daca vrei sati mearga cel de la cristi bagati include-ul zcmd

4 Errors.[/pawn]

Linia 648 fiind aceasta:

[pawn] CMD:hm(playerid, params[])[/pawn]

rgs.exiled.ro:7777

Link to comment
Share on other sites

[pawn]if(strcmp(cmdtext, "/hm", true) == 0)

    {

    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062 || COORDONATE-NOI)) //aa

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");

    }

    else

    {

        SendClientMessage(playerid, 0xE60000FF, "Nu esti in zona de spawn!");

    }

    return 1;

}[/pawn]

Practic, adaugi

[pawn] || COORDONATE-NOI[/pawn]

dupa fiecare serie de coordonate, inlocuiesti tu coordonatele

Rate me :)

Link to comment
Share on other sites

[pawn]if(strcmp(cmdtext, "/hm", true) == 0)

    {

    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062 || COORDONATE-NOI)) //aa

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");

    }

    else

    {

        SendClientMessage(playerid, 0xE60000FF, "Nu esti in zona de spawn!");

    }

    return 1;

}[/pawn]

Practic, adaugi

[pawn] || COORDONATE-NOI[/pawn]

dupa fiecare serie de coordonate, inlocuiesti tu coordonatele

Bun, erorile erau de la server dar daca adaug asta, imi da warnings

[pawn]C:\Documents and Settings\User\Desktop\New Folder\gamemodes\RO.pwn(1337) : warning 213: tag mismatch

C:\Documents and Settings\User\Desktop\New Folder\gamemodes\RO.pwn(1337) : warning 202: number of arguments does not match definition

C:\Documents and Settings\User\Desktop\New Folder\gamemodes\RO.pwn(1337) : warning 202: number of arguments does not match definition

C:\Documents and Settings\User\Desktop\New Folder\gamemodes\RO.pwn(1337) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Warnings.[/pawn]

Linia este asta:

[pawn]    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062 || 122,-2427.6863,1037.9819,50.3906)) //aa[/pawn]

Fara reclama in semnatura!

Link to comment
Share on other sites

if(strcmp(cmdtext, "/hm", true) == 0)

    {

    if(IsPlayerInRangeOfPoint(playerid, 217,403.6829,2466.3987,16.5062) || IsPlayerInRangeOfPoint(playerid, COORDONATE-NOI)) //aa

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

        SendClientMessage(playerid,0xFE1209FF, "{FFFFFF}Viata la spawn adaugat !!");

    }

    else

    {

        SendClientMessage(playerid, 0xE60000FF, "Nu esti in zona de spawn!");

    }

    return 1;

}[/pawn]

Practic, adaugi

[pawn] || IsPlayerInRangeOfPoint(playerid, COORDONATE-NOI)[/pawn]

dupa fiecare serie de coordonate, inlocuiesti tu coordonatele

**Ma scuzi, nu eram atent cand am scris aia, mai sus e rezolvarea corecta.

Rate me :)

Link to comment
Share on other sites

[quote name="DarkNe$$_" post="157342" timestamp="1390409970"]
[quote author=CristyRo link=topic=30336.msg157341#msg157341 date=1390407482]
[quote author=HaiCuMine link=topic=30336.msg157231#msg157231 date=1390147217]
[quote author=|FlashGun| link=topic=30336.msg157225#msg157225 date=1390144579]
Alte erori..Cristi

[pawn]D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero
D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 017: undefined symbol "cmd_hm"
D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : error 029: invalid expression, assumed zero
D:\Cum invat scripting\servere\Romania Fantasy Stunt\gamemodes\RO.pwn(648) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
Daca vrei sati mearga cel de la cristi bagati include-ul zcmd

4 Errors.[/pawn]

Linia 648 fiind aceasta:
[pawn]	CMD:hm(playerid, params[])[/pawn]
[/quote]
[/quote]
Schimba hm in alt nume ca doebicei asa imi facea si mie
[/quote]
Nu merge ,esti slab in Scripting...
[hr]
 inloc de 
[pawn]if(strcmp(cmdtext, "/hm", true) == 0)[/pawn]

pune

[pawn] CMD:hm(playerid, params[])[/pawn]

Link to comment
Share on other sites

inloc de [pawn]CMD:hm(playerid, params[])[/pawn] pune [pawn]if(strcmp(cmdtext, "/hm", true) == 0)[/pawn]

Uite HM:

if(strcmp(cmdtext, "/hm", true) == 0)
{
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 404.8082,2448.4775,16.1368))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 2118.8127,-2626.3044,13.6103))
    {
 		SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -1467.242553,-208.593795,19.070312))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 1583.712890,1450.693969,10.831033))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -2335.8875,-1626.1935,483.3552))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -527.418701,2023.649047,47.490310))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    	//--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 1857.1230,-2281.7593,17.0903))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -2633.8022,1359.0215,6.6751))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 1374.3136, -257.4903, 18.3436))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 834.037170, 269.238159, 709.190002))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 851.836975, -2246.758056, 662.570007))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 2410.961669,4172.320312,54.480434))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 1413.6228, 2730.4304, 10.8703))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -214.542678, -8175.392578, 35.225547))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 1841.7723, -3129.0222, 71.7619))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 3267.1531, -2449.8621, 90.8472))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -192.1480, -103.3305, 2.6739))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 560.0731,-1871.9779,4.1871))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -1973.711059, 287.046234, 35.171875))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, 2499.548583, -1684.674194, 13.429053))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 20, -276.953033, 1557.448364, 75.359375))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "~n~~r~Info:~n~~y~+100 Health~n~~y~+100 Armour", 3000, 3);
        return 1;
    }
    //---------------------------------------------------------------------------
    else return SendClientMessage(playerid, 0xFF0000FF "Nu esti in Spawn Zone !");
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.