18.03.2011, 21:01
(
Последний раз редактировалось austin070; 18.03.2011 в 21:08.
Причина: misread main post
)
pawn Код:
if(strcmp(cmdtext, "/knifeout", true, 9)== 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, x, y, z) // substitute x, y, and z with your kitchen's coordinates.
{
new str[128], name[24];
GetPlayerName(playerid, name, sizeof(name))
format(str, sizeof(str), "* %s takes a knife from the drawer.", name)
SendClientMessageToAll(0xFFFF00AA, str); //0xFFFF00 is yellow. change to whatever you want.
GivePlayerWeapon(playerid, 4, 0);
}
return 1;
}