30.11.2010, 15:26
(
Последний раз редактировалось laci112; 30.11.2010 в 15:37.
)
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.
And how to replace the Server:Unknow command message for to This Command not exit's tipe /commands ?
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;
}