07.05.2013, 15:21
Hi, I made a /stealbomb command.
Only the terrorists can steal the bomb, but when I typ /stealbomb at the location, it says unknown command.
When I am not at the location, it also says unknown command + the clientmessage you are not at the point.
Code:
Can anyone help me out? Thanks.
Only the terrorists can steal the bomb, but when I typ /stealbomb at the location, it says unknown command.
When I am not at the location, it also says unknown command + the clientmessage you are not at the point.
Code:
pawn Код:
CMD:stealbomb(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 275.3401, 1860.3333, 8.7578))
{
if(GetPlayerTeam(playerid) == Terrorists)
SendClientMessageToAll(COLOR_DARKORANGE, "%s has stolen the bomb!");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not near the stealing point!");
}
}