forward GetAdmin(playerid); public GetAdmin(playerid) return Admin[playerid];
/ban
/banip
/bannick
/tempban
/desbanir
/baninfo
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 012: invalid function call, not a valid address
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : warning 215: expression has no effect
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 001: expected token: ";", but found ")"
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : fatal error 107: too many error messages on one line
else format(AdminNick, MAX_PLAYER_NAME, Player(admin));
VBan(playerid, admin, Motivo[])
{
if(IsPlayerConnected(playerid))
{
new AdminNick[MAX_PLAYER_NAME];
if(admin == -1) format(AdminNick, MAX_PLAYER_NAME, "VBot");
else format(AdminNick, MAX_PLAYER_NAME, Player(admin));
format(VBString,128,"'- VBan -' O jogador %s foi banido por %s. Motivo: %s",Player(playerid),AdminNick,Motivo);
SendClientMessageToAll(CorBan,VBString);
format(VBString, 35, "/Bans/%s.ini", Player(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
format(VBString, 35, "/Bans/%s.ini", PlayerIP(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
VBanLoadInfo(playerid,VBString);
SetTimerEx("VBKick",300, false, "i", playerid);
}
else SendClientMessage(admin, CorErro, "Jogador nгo conectado.");
return true;
}
VBan(playerid, admin, Motivo[])
{
if(IsPlayerConnected(playerid))
{
new AdminNick[MAX_PLAYER_NAME];
if(admin == -1) format(AdminNick, MAX_PLAYER_NAME, "VBot");
else format(AdminNick, MAX_PLAYER_NAME, Player(admin));
format(VBString,128,"'- VBan -' O jogador %s foi banido por %s. Motivo: %s",Player(playerid),AdminNick,Motivo);
SendClientMessageToAll(CorBan,VBString);
format(VBString, 35, "/Bans/%s.ini", Player(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
format(VBString, 35, "/Bans/%s.ini", PlayerIP(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
VBanLoadInfo(playerid,VBString);
SetTimerEx("VBKick",300, false, "i", playerid);
}
else SendClientMessage(admin, CorErro, "Jogador nгo conectado.");
return true;
}
Poderia perder algum tempo nisso e fazer um update no code de salvamento para SQLite ou algo do gйnero.
Anyway bom trabalho jб vi muito servidor usando a sua velha include |