Jump to content

Recommended Posts

Posted

Salut! Am si eu o intrebare.Cum verificam daca (playerid) este in checkpoint, adica la (!IsPlayerInRangeOfPoint(playerid, X,Y,Z)) cum e verificare asta, doar ca eu vreau sa scrii o comanda gen /rentcar si sa iti dea eroare daca nu esti in range of point, multumesc!

Posted
Acum 33 minute, Kasper a spus:

Salut! Am si eu o intrebare.Cum verificam daca (playerid) este in checkpoint, adica la (!IsPlayerInRangeOfPoint(playerid, X,Y,Z)) cum e verificare asta, doar ca eu vreau sa scrii o comanda gen /rentcar si sa iti dea eroare daca nu esti in range of point, multumesc!

if(!IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z)) return SCM(playerid, -1, "Nu esti in locul potrivit");

 

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Posted
Acum 3 minute, StR_Marian a spus:

if(!IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z)) return SCM(playerid, -1, "Nu esti in locul potrivit");

 

frate, nu merge, pun verificarea la comanda cmd:buycar si degeaba, adica functioneaza dar eu vreau sa imi trimita si mesajul, nu doar sa functioneaze, si mesajul nu mi-l trimite.

Posted

if(!IsPlayerInRangeOfPoint(playerid, 5.0, Coordonatex, coordonatey, coordonatez)) return SendClientMessage(playerid, -1, "Nu esti la locatia potrivita!");

 

Sau gen 

 

CMD:test(playerid, params[])

{

        if(IsPlayerInRangeOfPoint(playerid, 5.0, Coordonatex, coordonatey, coordonatez))

       {

                   cod

       }

      else

     {

             SCM(playerid,-1,"Nu esti la locatia potrivita!");

     }

 

  • Thanks 1
Posted

App, cu isplayerinrangeofpoint sau playertopoint cu astea verifici doar daca player-ul este in locatia pusa de tine.

Daca vrei sa faci sa verifice in checkpoint o faci la public onplayerentercheckpoint - SetPlayerCheckpoint sau la public onplayerenterracecheckpoint - SetPlayerRaceCheckpoint

Posted
La 19.06.2018 la 17:57, AlexxAdv a spus:

if(!IsPlayerInRangeOfPoint(playerid, 5.0, Coordonatex, coordonatey, coordonatez)) return SendClientMessage(playerid, -1, "Nu esti la locatia potrivita!");

 

Sau gen 

 

CMD:test(playerid, params[])

{

        if(IsPlayerInRangeOfPoint(playerid, 5.0, Coordonatex, coordonatey, coordonatez))

       {

                   cod

       }

      else

     {

             SCM(playerid,-1,"Nu esti la locatia potrivita!");

     }

 

ms de ajutor!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.