SA-MP Forums Archive
Is someone got a filterscript of - your player got a weapon on his back? - 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: Is someone got a filterscript of - your player got a weapon on his back? (/showthread.php?tid=184169)



Is someone got a filterscript of - your player got a weapon on his back? - FujiNNN - 18.10.2010

topic..

is there a release for that? because i was searching and got nothing about it..

please if there is a filterscript of that share it here.. thank you.
(and good to be back to samp) XD


Re: Is someone got a filterscript of - your player got a weapon on his back? - Steven82 - 18.10.2010

I saw it on the forums or something like it awhile ago..just can't remeber the name.


Re: Is someone got a filterscript of - your player got a weapon on his back? - FujiNNN - 18.10.2010

Still cannot find it.. i've used the ****** search on the forums.. and.. nothing..

please someone share it with me or drop me a link it will be great thank you again..


Re: Is someone got a filterscript of - your player got a weapon on his back? - Babul - 18.10.2010

maybe you can use a few lines of this command?
the weapon model IDs are somewhere at the wiki. iam too lazy to search it now >-<
Код:
CMD:wear(playerid,params[]){//					admin
	if(!IsPlayerAdmin(playerid))
	{
	    SendClientMessage(playerid,MSGFAIL_COLOR,"Command not available.");
	    return 1;
	}
	new TargetID,optional[64],ObjectID,optional2[64],rX,rY,rZ;
	if (sscanf(params,"uz",TargetID,optional))
	{
		SendClientMessage(playerid,MSGCMDS_COLOR, "Usage: \"/Wear <PlayerID/Name> [ObjectID]\"");
	}
	else
	{
		if(TargetID!=INVALID_PLAYER_ID)
		{
			if (sscanf(optional,"dz",ObjectID,optional2))
			{
				StopPlayerHoldingObject(TargetID);
			}
			if (sscanf(optional2,"ddd",rX,rY,rZ))
			{
				rZ=90;
			}
			SetPlayerHoldingObject(TargetID,ObjectID,2,0,0,0,rX,rY,rZ);
		}
	}
	return 1;
}



Re: Is someone got a filterscript of - your player got a weapon on his back? - Slice - 18.10.2010

Make a command and put a line of SetPlayerHoldingObject in it.

See this for finding models, rotating, and positioning:
Hold Studio - Make awesome SetPlayerHoldingObject in no time.


Re: Is someone got a filterscript of - your player got a weapon on his back? - FujiNNN - 18.10.2010

Thanks, i saw that post already but my question is if there is a ready FS for that..


Re: Is someone got a filterscript of - your player got a weapon on his back? - FujiNNN - 19.10.2010

Quote:
Originally Posted by Babul
Посмотреть сообщение
maybe you can use a few lines of this command?
the weapon model IDs are somewhere at the wiki. iam too lazy to search it now >-<
Код:
CMD:wear(playerid,params[]){//					admin
	if(!IsPlayerAdmin(playerid))
	{
	    SendClientMessage(playerid,MSGFAIL_COLOR,"Command not available.");
	    return 1;
	}
	new TargetID,optional[64],ObjectID,optional2[64],rX,rY,rZ;
	if (sscanf(params,"uz",TargetID,optional))
	{
		SendClientMessage(playerid,MSGCMDS_COLOR, "Usage: \"/Wear <PlayerID/Name> [ObjectID]\"");
	}
	else
	{
		if(TargetID!=INVALID_PLAYER_ID)
		{
			if (sscanf(optional,"dz",ObjectID,optional2))
			{
				StopPlayerHoldingObject(TargetID);
			}
			if (sscanf(optional2,"ddd",rX,rY,rZ))
			{
				rZ=90;
			}
			SetPlayerHoldingObject(TargetID,ObjectID,2,0,0,0,rX,rY,rZ);
		}
	}
	return 1;
}
Is There a way to do it like: When player have a Deagle and an M4 so when he holding a Deagle in his hand the M4 will be on his back and when the player is switching weapon to the M4 the Deagle will be on his back

this is what im meaning to do..

thank you..