Jump to content
  • 0

Help Me


AlexSamp

Question

Deci as vrea sa ma ajutati cum sa fac ca o comanda adik /uplift /downlift sa mearga de la o anumita distanta si daca ma ajutati cu asta v-as ruga sa ma ajutati si cu asta daca playerul nu e la destinatia aia sa ii de-a o eroare ca nu poate folosi comanda cv gen ERROR: .......................

 

[pawn]

if ( !strcmp ( cmdtext, "/uplift", true, 5 ) )
{
MoveObject(lift, -1062.34155, -926.41022, 193.55170, 7);
IsPlayerConnected(playerid);
return 1;
}

if ( !strcmp ( cmdtext, "/downlift", true, 5 ) )
{
MoveObject(lift, -1062.34155, -926.41022, 130.37970, 7);
IsPlayerConnected(playerid);
return 2;

}

[/pawn]

Edited by Allex.xD
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

    if ( !strcmp ( cmdtext, "/uplift", true, 5 ) )
    if(IsPlayerInRangeOfPoint(playerid, 3.0,x,y,z)) //acel 3.0 reprezinta raza in care trebuie sa te afli poti pune si 1.0 daca vrei exact din coordonata.
    if(PlayerInfo[playerid][pMember] == LSPD) //aici am dat exeplu poti avea ori PlayerInfo ori PlayerData, pm, ioti avea [pMember] sau altfel cu ai tu la enum, iar LSPD poate sa fie altfel la tine dar tu trebuie sa adaptezi la modul tau.
    {
    MoveObject(lift, -1062.34155, -926.41022, 193.55170, 7);
    IsPlayerConnected(playerid);
    return 1;
    }
    if ( !strcmp ( cmdtext, "/downlift", true, 5 ) )
    if(IsPlayerInRangeOfPoint(playerid, 3.0,x,y,z))
    if(PlayerInfo[playerid][pMember] == LSPD) 
    {
    MoveObject(lift, -1062.34155, -926.41022, 130.37970, 7);
    IsPlayerConnected(playerid);
    return 2;

Deci incearca si vezi daca functioneaza daca da/nu revino cu un post.

Edited by Dany_Diaz

________________________________________________________________________________________________________________________

CMD:manele(playerid, params[])
{
    if(PlayerLogged[params[0]] == 0) return;
    SendClientMessage(playerid, COLOR_GREY, ""Ati primit kick. Motiv: Interzis manelistilor"");
    {
        Kick(params[0]);
	return 1;
    }
}


_______________________________________________________________________________________________________________________

 

 

 

 

 

 

 

 

 

 

 

 

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.