Help me please :)
#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


Messages In This Thread
Help me please :) - by M3ss1ng - 11.12.2009, 07:19
Re: Help me please :) - by Jason_Gregory - 11.12.2009, 08:29
Re: Help me please :) - by M3ss1ng - 11.12.2009, 11:29
Re: Help me please :) - by Deat_Itself - 11.12.2009, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)