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



SetPlayerWeapons - Tutrix - 02.01.2010

Hi, i got a problem when i am making a command with SetPlayerWeapons,

Here is the code:

Код:
	if(strcmp(cmd, "/dm2exit", true) == 0)
	{
		SetPlayerPos(playerid,-1409.97,-307.57,14.14);
		{
			SetPlayerInterior(playerid,0);
			SetPlayerWeapons(playerid, 0, 0);
			SendClientMessage(playerid, COLOR_RED, "You just left DM arena 2! ");
			GetPlayerName(playerid,sendername,sizeof(sendername));
			format(string, 256, "**DM2** %s has left DM arena 2!",sendername);
			SendClientMessageToAll(COLOR_GREEN,string);
			return 1;
			}
		}
And here is the error:

C:\Users\\Downloads\samp03asvr_R4_win32\game modes\lvdm.pwn(225) : error 004: function "SetPlayerWeapons" is not implemented

And yes, i did "forward SetPlayerWeapons(playerid);"


Re: SetPlayerWeapons - Correlli - 02.01.2010

SetPlayerWeapons isn't a native function, it could be a custom one.


Re: SetPlayerWeapons - Tutrix - 02.01.2010

Quote:
Originally Posted by Don Correlli
SetPlayerWeapons isn't a native function, it could be a custom one.
Well i want all the weapon to dissaper when u write /dm2exit


Re: SetPlayerWeapons - dice7 - 02.01.2010

https://sampwiki.blast.hk/wiki/ResetPlayerWeapons


Re: SetPlayerWeapons - Hijolion - 02.01.2010

you also take away there ammo with giveplayerweapon or setplayerarmedweapon


Re: SetPlayerWeapons - Tutrix - 02.01.2010

Quote:
Originally Posted by Skulls
you also take away there ammo with giveplayerweapon or setplayerarmedweapon
Hows that possible? didnt work for me