How to SendClientMessage when someone spawns a weapon?
#1

I have seen this in many servers but i could not find the answer.
Thanks.
Reply
#2

you want to create a message when someone spawn's?
If not, please tell us exactly what do you want .
Reply
#3

You mean like if someone spawns a weapon like Uzi he gets a message?
Reply
#4

Quote:
Originally Posted by Cry_Wolf
you want to create a message when someone spawn's?
If not, please tell us exactly what do you want .
No,when someone spawns a weapon.
For example cheaters when they get a weapon from their cheats,i want it to write this.

Yes,Rise..
Reply
#5

What do you mean spawn weapon?
And fr sending client message

Use :
Код:
SendClientMessage(playerid, color, "Message");
Reply
#6

Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by Cry_Wolf
you want to create a message when someone spawn's?
If not, please tell us exactly what do you want .
No,when someone spawns a weapon.
For example cheaters when they get a weapon from their cheats,i want it to write this.
Oh,you probably mean to GetPlayerWeapon.
Read that:https://sampwiki.blast.hk/wiki/GetPlayerWeapon
Reply
#7

I don't want the GetPlayerWeapon.
I mean if someone spawns a weapon this will write only one message like

Phil_Banks has got a Desert-Eagle.
Reply
#8

If you want to do that you will need to use the GetPlayerWeapon function.
Like:

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(GetPlayerWeapon(playerid) == weaponid(like 38,35 etc..) SendClientMessage(playerid,color,"text");
  return 1;
}
Reply
#9

Please explain, how exactly do they "spawn" a weapon? You mean buy it from Ammu-Nation? You made custom pickups for them? You made commands to get weapons?
Reply
#10

ahh, you mean that when someone get's a weapon, a message will be sent (to admin for ex.)?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)