Jump to content
  • 0

Ajutor


DanielG

Question

Buna , am o problema cu serverul meu de stunt

Am o comanda /ochelari si care merge pentru fiecare skin .Problema este cand ma duc intrun 24/7 si cumpar ochelari nu imi pune ochelarii doar daca sunt intr'o masina/motor.Ma puteteti ajuta sa fac sa mearga si cand playerul nu este in masina ?

Comanda :  [pawn]if(strcmp(cmd, "/ochelari", true) == 0)

{

    new skin = GetPlayerSkin(playerid);

    if(PlayerInfo[playerid][pLente] == 0) return SendClientMessage(playerid, COLOR_GREY, " Nu ai ochelari.");

    if(LPuestos[playerid] == 0)

    {

        if(ConCas[playerid] == 0)

{

    SetPlayerAttachedObject(playerid, 1, PlayerInfo[playerid][pLente], 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);

            format(string,sizeof(string),"* %s isi pune ochelarii.",NombreEx(playerid));

        ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

LPuestos[playerid] = 1;

return 1;

} return SendClientMessage(playerid, COLOR_GREY, " Mai intai scoate casca (/casca)");

}

else

{

    if(ConCas[playerid] == 0)

{

    RemovePlayerAttachedObject(playerid, 1);

    format(string,sizeof(string),"* %s isi scoate ochelarii.",NombreEx(playerid));

        ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

    LPuestos[playerid] = 0;

    return 1;

} return SendClientMessage(playerid, COLOR_GREY, " Mai intai scoate casca (/casca)");

}

}[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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.