Is someone got a filterscript of - your player got a weapon on his back?
#1

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
Reply
#2

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

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..
Reply
#4

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;
}
Reply
#5

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.
Reply
#6

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

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..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)