17.03.2011, 15:59
I would suggest you to use zcmd and sscanf. (sscanf isn't needed, but i prefer using it)
pawn Код:
command(boom, playerid, params[])
{
new pID;
if(sscanf(params, "u", pID)) return SendClientMessage(playerid, COLOR, "usage: /boom [ playerid / name ]");
// GetPlayerPos(pID, x, y, z) and shiiit here.
CreateExplosion(player2x, player2y, player2z, 7, 10.0); //this kills player 2
return 1;
}