25.05.2011, 14:40
what are the commands in conzole like
say -to say something in the server
did have others commands
say -to say something in the server
did have others commands
public OnRconCommand(cmd[]) {
if(cmd[0] == '!') {
GameTextForAll(cmd[1], 2500, 4);
return true;
}
if(strcmp(cmd, "kill", true) == 0) {
//no slash before the command! its "/rcon command" or in console only "command"
new
playerid = strval(cmd);
if(SetPlayerHealth(playerid, 0.0)) {
new
name[MAX_PLAYER_NAME];
SendClientMessage(playerid, 0xFF0000FF, "God send you to HELL");
GetPlayerName(playerid, name, sizeof name);
printf("%s (%d) successfully killed", name, playerid);
} else {
printf("Invalid playerid (%d)", playerid);
}
return true;
}
return false;
}