Command doesn't work -
xganyx - 15.07.2013
pawn Код:
CMD:bomb(playerid, params[])
{
new target;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "SERVER: Unknown command.");
if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, "USAGE: /pdropbomb (playerid/name)");
if(target == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Player not connected.");
else
{
GetPlayerPos(target, Pos[0], Pos[1], Pos[2]);
missile = CreateObject(OBJECT, Pos[0], Pos[1]+2, Pos[2]+200, 0, 0, 1000, 1000);
SetTimerEx("move", 100, 1, "d", target);
SetObjectRot(missile, 0, 0, 1000);
SendClientMessage(playerid, -1, "Done!");
GameTextForAll("There is a missile headed~n~one of you's way. ~r~Beware.", 5000, 5);
SetTimerEx("explode", 100, 1, "d", playerid);
SetTimerEx("play",1000, 0, "d", playerid);
ismon = true;
}
return 1;
}
here is my command but when i go to server and type /bomb and the msg said:
pawn Код:
SERVER: UNKNOW THAT COMMAND
Re: Command doesn't work -
nor15 - 15.07.2013
you logged in as RCON admin ?
OR Try this
PHP код:
CMD:bomb(playerid, params[])
{
new target;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "SERVER: Unknown command.");
if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, "USAGE: /pdropbomb (playerid/name)");
if(target == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Player not connected.");
GetPlayerPos(target, Pos[0], Pos[1], Pos[2]);
missile = CreateObject(OBJECT, Pos[0], Pos[1]+2, Pos[2]+200, 0, 0, 1000, 1000);
SetTimerEx("move", 100, 1, "d", target);
SetObjectRot(missile, 0, 0, 1000);
SendClientMessage(playerid, -1, "Done!");
GameTextForAll("There is a missile headed~n~one of you's way. ~r~Beware.", 5000, 5);
SetTimerEx("explode", 100, 1, "d", playerid);
SetTimerEx("play",1000, 0, "d", playerid);
ismon = true;
return 1;
}
Respuesta: Command doesn't work -
Parka - 15.07.2013
need to be root rcon
Re: Command doesn't work -
[HiC]TheKiller - 15.07.2013
Read it wrong, silly me. Make sure you're logged in as rcon admin. Type /rcon login [password] which is stated in your server.cfg file.
Re: Command doesn't work -
xganyx - 15.07.2013
Sorry I'm forgot to see the sendclientmessage thanks guys I love u signature Parka