SetPlayerWeapons
#1

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);"
Reply
#2

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

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

https://sampwiki.blast.hk/wiki/ResetPlayerWeapons
Reply
#5

you also take away there ammo with giveplayerweapon or setplayerarmedweapon
Reply
#6

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


Forum Jump:


Users browsing this thread: 2 Guest(s)