Jump to content

Question

Posted

Salutare

Am facut o comanda de atasat obiecte de player cu functia SetPlayerAttachedObject

Problema este ca de fiecare data cand dau obiectul nu sta mai mult de 1 secunda si dispare

Ma puteti ajuta va rog ?

5 answers to this question

Recommended Posts

Posted

uite [pawn]if(listitem == 0)

{

    PlayerInfo[playerid][pLente] = 19006;

    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]);

}

if(listitem == 1)

{

    PlayerInfo[playerid][pLente] = 19007;

    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]);

}

if(listitem == 2)

{

    PlayerInfo[playerid][pLente] = 19008;

    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]);

}

if(listitem == 3)

{

    PlayerInfo[playerid][pLente] = 19009;

    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]);

}

if(listitem == 4)

{

    PlayerInfo[playerid][pLente] = 19010;

    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]);

}

if(listitem == 5)

{

    PlayerInfo[playerid][pLente] = 19011;

    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]);

}

if(listitem == 6)

{

    PlayerInfo[playerid][pLente] = 19012;

    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]);

}

if(listitem == 7)

{

    PlayerInfo[playerid][pLente] = 19013;

    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]);

}

if(listitem == 8)

{

    PlayerInfo[playerid][pLente] = 19014;

    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]);

}

if(listitem == 9)

{

    PlayerInfo[playerid][pLente] = 19015;

    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]);

}

if(listitem == 10)

{

    PlayerInfo[playerid][pLente] = 19016;

    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]);

}

if(listitem == 11)

{

PlayerInfo[playerid][pLente] = 19017;

    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]);

}

if(listitem == 12)

{

PlayerInfo[playerid][pLente] = 19018;

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]);

}

if(listitem == 13)

{

    PlayerInfo[playerid][pLente] = 19019;

    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]);

}

if(listitem == 14)

{

    PlayerInfo[playerid][pLente] = 19020;

    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]);

}

if(listitem == 15)

{

    PlayerInfo[playerid][pLente] = 19021;

    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]);

}

if(listitem == 16)

{

    PlayerInfo[playerid][pLente] = 19022;

    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]);

}

if(listitem == 17)

{

    PlayerInfo[playerid][pLente] = 19023;

    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]);

}

if(listitem == 18)

{

    PlayerInfo[playerid][pLente] = 19024;

    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]);

}

if(listitem == 19)

{

    PlayerInfo[playerid][pLente] = 19025;

    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]);

}

if(listitem == 20)

{

    PlayerInfo[playerid][pLente] = 19026;

    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]);

}

if(listitem == 21)

{

    PlayerInfo[playerid][pLente] = 19027;

    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]);

}

if(listitem == 22)

{

    PlayerInfo[playerid][pLente] = 19028;

    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]);

}

if(listitem == 23)

{

    PlayerInfo[playerid][pLente] = 19029;

    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]);

}

if(listitem == 24)

{

    PlayerInfo[playerid][pLente] = 19030;

    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]);

}

if(listitem == 25)

{

    PlayerInfo[playerid][pLente] = 19031;

    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]);

}

if(listitem == 26)

{

    PlayerInfo[playerid][pLente] = 19032;

    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]);

}

if(listitem == 27)

{

    PlayerInfo[playerid][pLente] = 19033;

    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]);

}

if(listitem == 28)

{

    PlayerInfo[playerid][pLente] = 19034;

    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]);

}

if(listitem == 29)

{

    PlayerInfo[playerid][pLente] = 19035;

    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]);

}[/pawn]

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.