19.02.2009, 08:14
fixed :>
dcmd_explode(playerid,params[]) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 3) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /explode [PLAYER NAME/ID] [REASON]");
new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
player1 = strval(tmp);
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
new Float:burnx, Float:burny, Float:burnz; GetPlayerPos(player1,burnx, burny, burnz); CreateExplosion(burnx, burny , burnz, 7,10.0);
if(strlen(tmp2)) {
format(string,sizeof(string),"Admin %s has exploded %s. (Reason: %s)",adminname,playername,params[2]); return SendClientMessageToAll(COLOR_YELLOW,string); }
} else return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Invalid Player Name/ID");
} else return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
} else return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
return 1;
}
Originally Posted by hctiB_selffaW_yM
ok LOL, it was [PAWN], or sumthin?
|