Help me please :)
#1

I'm using LARP, and i want to create pickup that gives you weapons,armor..
but just your faction can use it.. like if im in Aztecas.. i am going to create a pickup in their house, when they write "/AZTECAS"
that will give him MP5 , DEAGLE , ARMOR .. So how can i create it ?
Please help me , thanks.
Reply
#2

You have to define dcmd, PlayerToPoint (in gf allready defined) and sscanf first
then...

Under OnCommandText

Код:
dcmd(Aztecas, 7, cmdtext);
Код:
dcmd_Aztecas(playerid, params[])
{
  if(IsPlayerAdmin(playerid) && PlayerToPoint(4.0, playerid, YourXPosition, YourYPosition, YourZPosition))
  {
	new
		id;
	if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/Aztecas <playerid>\"");
	else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else
	{
	    GivePlayerWeapon(id, YourWeaponIdforMp5, 200);
        GivePlayerWeapon(id, YourWeaponIdforDEAGLE , 200);
        GivePlayerWeapon(id, Armorid, 100);
        SendClientMessage(id, 0x00FF00AA, "You received Weapons");
	    SendClientMessage(playerid, 0x00FF00AA, "Player received the Weapons from you");
	}
	return 1;
  }
}
Reply
#3

i didn't get what you say..
im new in this shit
explain me pl0x
Reply
#4

https://sampwiki.blast.hk/wiki/AddStaticPickup
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)