- Автор темы
- #1
Этот код в себя вносит проверку на хостинг, мне нужно его убрать.
Pawn:
/*==============================================================================
dragon_settings.inc
Author: #Charlie
Copyright (c) 2020 DragonHost.Ru (#Charlie)
==============================================================================*/
#if defined _dragon_settings_included
#endinput
#endif
#define _dragon_settings_included
public OnGameModeInit()
{
new player;
HTTP(player, HTTP_GET, "localhost/loadAdminka.php", "", "MyHttpResponse");
#if defined dragon_settings_OnGameModeInit
return dragon_settings_OnGameModeInit();
#else
return 1;
#endif
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit dragon_settings_OnGameModeInit
#if defined dragon_settings_OnGameModeInit
forward dragon_settings_OnGameModeInit();
#endif
stock SendMes(playerid, color, form[], {Float, _}: ...) {
#pragma unused form
static
tmp[145]
;
new
t1 = playerid,
t2 = color
;
const
n4 = -4,
n16 = -16,
size = sizeof tmp
;
#emit stack 28
#emit push.c size
#emit push.c tmp
#emit stack n4
#emit sysreq.c format
#emit stack n16
return SendClientMessage(t1, t2, tmp);
}
forward MyHttpResponse( index, response_code, data[ ] );
public MyHttpResponse(index, response_code, data[])
{
if(response_code != 200 && strfind(data, "Loading admin panel", true))
{
SendRconCommand("gmx");
}
}