- 0
Intrebare /hm
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
|FlashGun|
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