Wrong command
#1

hy somebody can help me?
O create a teleport command its work's fine but when i tipe the command in game i ben teleported to chilliad but i get this error message SERVER:Unknown command[but the commands work fine i got teleported] Sorry my bad english.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/chilliad", true) == 0)
      if (IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),-2308.7029,-1658.0901,483.6802);
            SendClientMessage(playerid, 0xFFFF00AA, "Mount Chilliad");
            }
            else
            {
            SetPlayerPos(playerid,-2308.7029,-1658.0901,483.6802);
            SendClientMessage(playerid, 0xFFFF00AA, "Mount Chilliad");
            return 1;
        }
    return 0;
}
And how to replace the Server:Unknow command message for to This Command not exit's tipe /commands ?
Reply


Messages In This Thread
Wrong command - by laci112 - 30.11.2010, 15:26
Re: Wrong command - by Ash. - 30.11.2010, 16:20
Re: Wrong command - by laci112 - 30.11.2010, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)