09.06.2015, 08:37
like this ??
Код:
#if defined _Aadmin_included #endinput #endif #define _Aadmin_included #pragma library ladmin #include <a_samp> #include <YSI\y_ini> #define name #define PATH "/Users/%s.ini" /* ================================================================================ ------------------------------------------------- Admin Include v0.10 ©Armageddon@Rexz ------------------------------------------------- ================================================================================ */ //============================================================================== // Administration //============================================================================== stock PlayerInfo(playerid, pAdmin) { new tmp; new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format( string, sizeof(string),PATH,playername); INI_Int("Admin", tmp;); if((IsPlayerConnected(playerid)) && (tmp >= 1) && (tmp!= 0)) return string; else return false; }