Tip: Include
Slike ili Video: //
Opis i dodatne informacije: //
Download link: https://github.com/realnaith/rcon-samp
Scan link: //
Credits: realnaith
[pawn]
/*
* Rcon Include
* Author: [realnaith]
* Version: 1.0
*/
// Server restart
native Rcon_RestartServer();
// Change hostname
native Rcon_SetHostname(const hostname[]);
// Set server password
native Rcon_SetPassword(const password[]);
// Ban a player by their IP address
native Rcon_Ban(const ip_address[]);
// Ban a player by their player ID
native Rcon_BanPlayer(playerid);
// Unban a player by their IP address
native Rcon_Unban(const ip_address[]);
// Unban a player by their player ID
native Rcon_UnbanPlayer(playerid);
// Kick a player by their player ID with an optional reason
native Rcon_Kick(playerid, const reason[] = "");
// Get the number of players currently online
native Rcon_GetPlayerCount();
// Get the player name of a player by their player ID
native Rcon_GetPlayerName(playerid, name[], size = sizeof(name));
// Send an RCON command directly to the server
native Rcon_SendCommand(const command[]);
// Get the server's gamemode name
native Rcon_GetGamemodeName(gamemode[], size = sizeof(gamemode));
// Get the server's language
native Rcon_GetLanguage(lang[], size = sizeof(lang));
// Get the server's map name
native Rcon_GetMapName(mapname[], size = sizeof(mapname));
// Set the server weather
native Rcon_SetWeather(weatherid);
// Set the server time
native Rcon_SetTime(hour, minute);
// Get the server's max players
native Rcon_GetMaxPlayers();
// Set the server's max players
native Rcon_SetMaxPlayers(maxplayers);
// Get the server's password
native Rcon_GetServerPassword(password[], size = sizeof(password));
// Set the server's gravity
native Rcon_SetGravity(Float:gravity);
// Set the server's world time
native Rcon_SetWorldTime(hour, minute);
// Set the server's wave height
native Rcon_SetWaveHeight(Float:height);
// Set the server's water level
native Rcon_SetWaterLevel(Float:level);
// Get the server's hostname
native Rcon_GetHostname(hostname[], size = sizeof(hostname));
// Get the server's password
native Rcon_GetPassword(password[], size = sizeof(password));
// Set the server's password for admin access
native Rcon_SetAdminPassword(const password[]);
// Get the server's weather name
native Rcon_GetWeatherName(weathername[], size = sizeof(weathername));
// Get the server's version
native Rcon_GetVersion(version[], size = sizeof(version));
// Get the server's world time rate
native Rcon_GetWorldTimeRate();
// Set the server's world time rate
native Rcon_SetWorldTimeRate(Float:rate);
// Get the server's vehicles respawn time
native Rcon_GetVehicleRespawnTime();
// Set the server's vehicles respawn time
native Rcon_SetVehicleRespawnTime(time);
// Get the server's default weather
native Rcon_GetDefaultWeather(&weatherid);
// Set the server's default weather
native Rcon_SetDefaultWeather(weatherid);
// Set the server's world lighting
native Rcon_SetWorldLighting(Float:red, Float:green, Float:blue);
// Get the server's world lighting
native Rcon_GetWorldLighting(&Float:red, &Float:green, &Float:blue);
// Set the server's name tag distance
native Rcon_SetNameTagDistance(Float:distance);
// Get the server's name tag distance
native Rcon_GetNameTagDistance();
// Set the server's map icon
native Rcon_SetMapIcon(iconid, Float:x, Float:y, Float:z, type, color, style = MAPICON_LOCAL);
// Remove a map icon by its ID
native Rcon_RemoveMapIcon(iconid);
// Get the server's network statistics
native Rcon_GetNetworkStats(net_stats[], size = sizeof(net_stats));
// Set player health
native Rcon_SetPlayerHealth(playerid, Float:health);
// Set player armour
native Rcon_SetPlayerArmour(playerid, Float:armour);
// Kick a player by their player ID
native Rcon_KickPlayer(playerid);
// Give a player money
native Rcon_GivePlayerMoney(playerid, amount);
// Set player time
native Rcon_SetPlayerTime(playerid, hour, minute);
// Set player weather
native Rcon_SetPlayerWeather(playerid, weatherid);
// Give a player a weapon with ammo
native Rcon_GivePlayerWeapon(playerid, weaponid, ammo);
// Take a weapon from a player
native Rcon_TakePlayerWeapon(playerid, weaponid, ammo);
// Teleport player to a specific location
native Rcon_TeleportPlayer(playerid, Float:X, Float:Y, Float:Z, Float:rotation = -1.0, interiorid = 0, virtualworld = 0);
// Teleport all players to a specific location
native Rcon_TeleportAllPlayers(Float:X, Float:Y, Float:Z, Float:rotation = -1.0, interiorid = 0, virtualworld = 0);
// Send a client message to a player
native Rcon_SendClientMessage(playerid, color, const message[]);
forward Rcon_OnServerRestart();
forward Rcon_OnPlayerBanned(playerid, const reason[]);
forward Rcon_OnPlayerUnbanned(playerid);
forward Rcon_OnPlayerKicked(playerid, const reason[]);
[/pawn]
Samo jako
Bump
bump