10.11.2010, 23:37
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/buygun", false))
{
if(!IsPlayerInRangeOfPoint(playerid, 3.5, /* your X, Y and Z goes here*/)) return SendClientMessage(playerid, 0xF0F0F0FF, "You are not in the black market!");
{
/* your buy gun code goes here */
}
}
return 0;
}