SA-MP Forums Archive
Bandana System - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bandana System (/showthread.php?tid=274328)



Bandana System - GTA-Roleplay - 05.08.2011

There is something badana system to download give me link plz


Re: Bandana System - Kingunit - 05.08.2011

http://forum.sa-mp.com/showthread.ph...ht=Hold+studio


Re: Bandana System - GTA-Roleplay - 05.08.2011

I mean a bandana system that is clear to User as flitersricpt


Re: Bandana System - Kingunit - 05.08.2011

Then I don't know what you mean with 'bandana system'


Re: Bandana System - Jafet_Macario - 05.08.2011

Here are 2 commands:
pawn Код:
if(strcmp(cmd, "/bandana", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] == 15) // your factions id here
            {
                SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
                SendClientMessage(playerid, COLOR_GREEN, "Use /bandanaoff to get it off");
            }
                else if(PlayerInfo[playerid][pMember] == 1) // your factions id here
            {
                RemovePlayerAttachedObject(playerid,0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "You are not a faction member");
            }
        }
        return 1;
    }
    if(strcmp(cmd,"/bandanaoff", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
            {
                RemovePlayerAttachedObject(playerid, 0);
                SendClientMessage(playerid, COLOR_RED, "You removed your bandana");
            }
        }
        return 1;
    }
Hope I helped.


Re: Bandana System - GTA-Roleplay - 05.08.2011

Thanks


Re: Bandana System - GTA-Roleplay - 05.08.2011

Код:
if(strcmp(cmd, "/bandana", true) == 0)    {        if(IsPlayerConnected(playerid))        {            if(PlayerInfo[playerid][pMember] == 15) // your factions id here            {                SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);                SendClientMessage(playerid, COLOR_GREEN, "Use /bandanaoff to get it off");            }                else if(PlayerInfo[playerid][pMember] == 1) // your factions id here            {                RemovePlayerAttachedObject(playerid,0);            }            else            {                SendClientMessage(playerid, COLOR_RED, "You are not a faction member");            }        }        return 1;    }    if(strcmp(cmd,"/bandanaoff", true) == 0)    {        if(IsPlayerConnected(playerid))        {            if(IsPlayerAttachedObjectSlotUsed(playerid, 0))            {                RemovePlayerAttachedObject(playerid, 0);                SendClientMessage(playerid, COLOR_RED, "You removed your bandana");            }        }        return 1;    }