Jump to content
  • 0

Salut, am si eu o problema!


LordHitlerAdv

Question

Salut, vreau sa fac si eu range-ul la o comanda am facut asa:

CMD:enter(playerid,params)
{
     if(IsPlayerInRangeOfPoint(2, playerid, -2167.3972,3306.8318,95.5800)) 
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "You are not admin");
    SendClientMessage(playerid, COLOR_RED,"Ai intrat in STAFFHQ");
    SetPlayerPos(playerid,-1334.8776,2369.5540,599.3223);
    return 1;
}

dar, pot da de oriunde, am incercat si if(IsPlayerInRangeOfPoint(2, playerid, -2167.3972,3306.8318,95.5800))  return SendClientMessage(playerid,COLOR_RED,"Esti prea departe");

dar la fel pot, da peste tot.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

salut, dupa    if(IsPlayerInRangeOfPoint(2, playerid, -2167.3972,3306.8318,95.5800))   adaugi o paranteza acolada iar inainte de return 1 inchizi paranteza.

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

{PAWN}
CMD:enter(playerid,params)
{
    if(IsPlayerInRangeOfPoint(playerid, 10, -2167.3972,3306.8318,95.5800)) 
    {
     return  SendClientMessage(playerid, COLOR_WITHE,"Nu esti la punctul de intrare");
    }
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "You are not admin");
    SendClientMessage(playerid, COLOR_RED,"Ai intrat in STAFFHQ");
    SetPlayerPos(playerid,-1334.8776,2369.5540,599.3223);
    return 1;
   }

{PAWN}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.