26.08.2010, 01:29
Yeah I made a /drink command and i type the command and it says "Sever unknown command" even though i get the menu..
Also i have set it so if the player is not near the bar it says "You are not at the Bar" but that does not work..
Fixed!!
Also i have set it so if the player is not near the bar it says "You are not at the Bar" but that does not work..
pawn Код:
if (strcmp("/drink", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0, 499.2672, -20.6538, 1000.6797))
{
ShowMenuForPlayer(Drink, playerid);
}
}
else
{
{
SendClientMessage(playerid, COLOR_WHITE, "You are not at the Bar");
}
return 1;
}