About my clothing 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)
+--- Thread: About my clothing system (
/showthread.php?tid=389272)
About my clothing system -
Serizawa - 01.11.2012
I need help about my clothing
When i type /bandana ..
It suddenly disappear..Please help me if u guys can..
AW: About my clothing system -
Skimmer - 01.11.2012
Can you show us
/bandana Command script, under
OnPlayerCommandText() or whatever ?
Re: About my clothing system -
Serizawa - 01.11.2012
pawn Код:
if(strcmp(cmd, "/bandana", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBandana] == 0)
{
return SendClientMessage(playerid, COLOR_GRAD2, " You do not own a bandana !");
}
if(WearingBandana[playerid] == 0)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) { WearingHelmet[playerid] = 0; RemovePlayerAttachedObject(playerid,2); }
new skin, bandanaid;
bandanaid = PlayerInfo[playerid][pBandana];
skin = GetPlayerSkin(playerid);
SetPlayerAttachedObject(playerid, 4, bandanaid, 2, BandanaOffSet[skin][0], BandanaOffSet[skin][1], BandanaOffSet[skin][2], BandanaOffSet[skin][3], BandanaOffSet[skin][4], BandanaOffSet[skin][5]);
WearingBandana[playerid] = 1;
return SendClientMessage(playerid, COLOR_GRAD2, " You have put on your bandana.");
}
if(WearingBandana[playerid] == 1)
{
RemovePlayerAttachedObject(playerid, 4);
WearingBandana[playerid] = 0;
return SendClientMessage(playerid, COLOR_GRAD2, " You have taken off your bandana.");
}
}
}
Re: About my clothing system -
Serizawa - 01.11.2012
I dont know cause this script my friend made it..but hes not here..
Re: About my clothing system -
Serizawa - 02.11.2012
No help?