explode cmd help
#3

Код:
dcmd_explode(playerid, params[])
{
    new string[256];
	new id;
	if(sscanf(params, "u", id))
	    return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /explode [nick/id]");
	if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id))
	    return SendClientMessage(playerid, COLOR_RED, "ERROR: That player is not connected!");
	new Float:Pos[3];
	GetPlayerPos(id, Pos[0], Pos[1], Pos[2]);
	CreateExplosion(Pos[0], Pos[1], Pos[2], 0, 10.0);
 	format(string, sizeof(string), "Admin: %s has exploded %s", playerid,id);
	SendClientMessageToAll(COLOR_RED, string);
	return 1;
}
Try this!
Reply


Messages In This Thread
explode cmd help - by Face9000 - 17.12.2010, 16:05
Re: explode cmd help - by PowerPC603 - 17.12.2010, 16:11
Re: explode cmd help - by akis_tze - 17.12.2010, 16:26
Re: explode cmd help - by WillyP - 17.12.2010, 16:27
Re: explode cmd help - by Face9000 - 17.12.2010, 16:38
Re: explode cmd help - by WillyP - 17.12.2010, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)