Jump to content

verificare


Kasper

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.