SA-MP Forums Archive
Command [help] - 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: Command [help] (/showthread.php?tid=645912)



Command [help] - Fletcher007 - 06.12.2017

Код:
CMD:t1(playerid)
{
    if(pData[playerid][pAdmin] < 5) return true;
    for(new i = 0; i < 8; i++)
    {
    	if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid,i);
    }
    SetPlayerAttachedObject(playerid, 2, 19516, 2,0.050000,-0.019999,0.000000,0.000000,180.000000,-90.000000,1.299999,1.200000,1.000000);
    SetPlayerAttachedObject(playerid, 1, 19516, 2,-0.064999,0.029999,0.000000,0.000000,0.000000,90.000000,1.000000,1.299999,1.000000);
    SetPlayerAttachedObject(playerid, 3, 19066, 2,0.150000,-0.009999,0.000000,-90.000000,90.000000,180.000000,1.000000,1.000000,1.000000);
    SetPlayerAttachedObject(playerid, 6, 19065, 1,-0.209999,0.000000,0.090000,180.000000,75.000000,180.000000,1.200000,3.000000,6.500000);
    SetPlayerAttachedObject(playerid, 5, 19065, 1,-0.209999,0.000000,-0.090000,0.000000,75.000000,180.000000,1.200000,3.000000,6.500000);
    SetPlayerAttachedObject(playerid, 4, 19065, 1,-0.550000,-0.200000,0.000000,90.000000,10.000000,185.000000,4.400000,3.799999,1.799999);
    SetPlayerAttachedObject(playerid, 7, 19348, 6,0.070000,0.000000,0.600000,0.898999,180.000000,-119.299003,1.200000,1.200000,1.799999);
    SetPlayerSkinEx(playerid, 189);
    return 1;
}
i cannot delete attach objects using same cmd


Re: Command [help] - Marllun - 06.12.2017

Does this command create and then delete?


Re: Command [help] - EmpireSk - 06.12.2017

CMD:t1(playerid)?
CMD:t1(playerid,params[]) ....?


Re: Command [help] - Fletcher007 - 06.12.2017

no its only creating but not delete...