SA-MP Forums Archive
I Wanna ask - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I Wanna ask (/showthread.php?tid=396333)



I Wanna ask - Yordan_Kronos - 30.11.2012

How can i delete ChainSaw ?? i dont want to give me chainsaw for this animation

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new string[256];
    switch(dialogid)
    {
        case 999:
        {
            if(response)
            {
                if ( IsPlayerAttachedObjectSlotUsed ( playerid, 1 ) ) RemovePlayerAttachedObject ( playerid, 1 ) , // pick pickaxe
                woodcutter[playerid] = true;// work started
                Oldskin[playerid] = GetPlayerSkin(playerid);// grean triangle for the skin
                SetPlayerSkin(playerid, 133);//put the skin on hard workers
                SetPlayerCheckpoint(playerid,-1898.4493,-2008.8124,80.6425,1.0);// Put the checkpoint
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}You Started WoodMan!");
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}on your map marked checkpoint");
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}Go to him to start logging");
                ApplyAnimation(playerid,"CHAINSAW","WEAPON_csaw",4.1,1,0,0,0,1);
                ClearAnimations(playerid);
            }
        }
        case 9999:
        {



Re: I Wanna ask - dr.lozer - 30.11.2012

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new string[256];
    switch(dialogid)
    {
        case 999:
        {
            if(response)
            {
                if ( IsPlayerAttachedObjectSlotUsed ( playerid, 1 ) ) RemovePlayerAttachedObject ( playerid, 1 ) , // pick pickaxe
                woodcutter[playerid] = true;// work started
                Oldskin[playerid] = GetPlayerSkin(playerid);// grean triangle for the skin
                SetPlayerSkin(playerid, 133);//put the skin on hard workers
                SetPlayerCheckpoint(playerid,-1898.4493,-2008.8124,80.6425,1.0);// Put the checkpoint
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}You Started WoodMan!");
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}on your map marked checkpoint");
                SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}Go to him to start logging");
            }
        }
        case 9999:
        {