09.08.2012, 06:15
Quote:
format is easy,
pawn Код:
|
pawn Код:
stock SendMeMessage(playerid)
{
new string[128], name[24], weapon;
weapon = GetPlayerWeapon(playerid);
GetPlayerName(playerid,name,24);
if(weapon == 9) // chainsaw
{
format(string,128,"%s (%d) Takes Out His Chainsaw.",name,playerid);
}
return 1;
}
Note: This stock is just an example and is only getting weapon id 9 which is a chainsaw and will not work for anything else unless you modify it yourself. Just skim through it so you understand it better.