03.09.2011, 22:05
do this to fix the server unknown cmd message.
How did u create the object? Can u show me that part pls.
pawn Код:
if(strcmp(cmd, "/plantbomb", true) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 1, 1459.8588,-1743.1594,721.2321))
{
if(PlayerInfo[playerid][pBomb] >= 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You planted the bomb the door will explode shortly");
DestroyPlayerObject(playerid, dooratbank);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
}
else
{
SendClientMessage(playerid, COLOR_CREAM, "You don't have a bomb.");
}
}
return 1; //here
}