15.07.2013, 04:19
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;
}
pawn Код:
SERVER: UNKNOW THAT COMMAND