---
title: "SendRconCommand | open.mp"
description: "Nagpapadala ng command na RCON (Remote Console)."
canonical: https://omp.itsneufox.com/fil/docs/scripting/functions/SendRconCommand
language: fil
---

# SendRconCommand

## Description

Nagpapadala ng command na RCON (Remote Console).

| Name | Description |
| --- | --- |
| command\[\] | Ang RCON command na ma e-execute |

## Returns

Ang function na ito ay palaging rereturn ng 1.

## Notes

note

-   Hindi sinusuportahan ang pag-login, dahil sa kakulangan ng parameter na 'playerid'.
-   Tatanggalin ng 'password 0' ang password ng server kung nakatakda ang isa.
-   Ang function na ito ay magreresulta sa OnRconCommand na tinatawag.

## Examples

```c
SendRconCommand("gmx");
// Ito ay isang scripted na bersyon ng pag-type ng "/rcon gmx" in-game.
// Ni-restart ng GMX ang mode ng laro.

// Halimbawa gamit ang format()
new szMapName[] = "Los Santos";
new szCmd[64];
format(szCmd, sizeof(szCmd), "mapname %s", szMapName);
SendRconCommand(szCmd);
```

## Related Functions

-   [IsPlayerAdmin](https://omp.itsneufox.com/fil/docs/scripting/functions/IsPlayerAdmin): Sinusuri kung ang isang manlalaro ay naka-log in sa RCON.

## Related Callbacks

-   [OnRconCommand](https://omp.itsneufox.com/fil/docs/scripting/callbacks/OnRconCommand): Tinatawag kapag ipinadala ang isang utos ng RCON.
-   [OnRconLoginAttempt](https://omp.itsneufox.com/fil/docs/scripting/callbacks/OnRconLoginAttempt): Tinatawag kapag may ginawang pagtatangkang mag-log in sa RCON.
