SA-MP Forums Archive
help me - 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: help me (/showthread.php?tid=514390)



help me - Shinobu - 21.05.2014

Help me fix it step




19634-19645
Код:
{
			new Weapon = GetPlayerWeapon(playerid);
			new Ammo = GetPlayerAmmo(playerid);
			GivePlayerWeapon(playerb, Weapon, Ammo);
			RemovePlayerWeapon(playerid, Weapon);
			format(string, sizeof(string), "* %s hands their weapon to %s.", RPN(playerid), RPN(playerb));
	    	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
	    	format(string, sizeof(string), " You have given %s your weapon.", RPN(playerb));
	    	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	    	format(string, sizeof(string), " You have received a weapon from.", RPN(playerid));
	    	SendClientMessage(playerb, COLOR_LIGHTBLUE, string);
		}

20137-20150
Код:
{
			new Weapon = GetPlayerWeapon(playerid);
			new Ammo = GetPlayerAmmo(playerid);
			GivePlayerWeapon(playerb, Weapon, Ammo);
			RemovePlayerWeapon(playerid, Weapon);
			format(string, sizeof(string), "* %s hands their weapon to %s.", RPN(playerid), RPN(playerb));
	    	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
	    	format(string, sizeof(string), " You have given %s your weapon.", RPN(playerb));
	    	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	    	format(string, sizeof(string), " You have received a weapon from.", RPN(playerid));
	    	SendClientMessage(playerb, COLOR_LIGHTBLUE, string);
		}



Re: help me - rumen98 - 21.05.2014

https://sampforum.blast.hk/showthread.php?tid=514374 ...
No Double Posting - There is a modify button , use it. However, bumping a topic in which you have or require further information is allowed after at least 24 hours. Note that two identical posts appearing at the same time is usually a mistake attributed to lag, and will not be penalized (but the second one will be removed).
>>> http://forum.sa-mp.com/announcement.php?f=12 <<< Read This