25.01.2016, 22:22
Hello guys.
I've scripted a ban system, which we can get the name of admin who has banned us.
But when, I connect to the server, i got :
"You are banned from the server", which is the normal SA-MP message.
My definition is under the OnPlayerConnect :
Hope getting advices as soon as possible.
- KillerDVX.
I've scripted a ban system, which we can get the name of admin who has banned us.
But when, I connect to the server, i got :
"You are banned from the server", which is the normal SA-MP message.
My definition is under the OnPlayerConnect :
PHP код:
if(NameBanned[playerid] == 1)
{
INI_Load("/bans/%s.ini");
format(string,sizeof(string),"{74F569}[BANNI] : {FFFFFF}Vous avez йtй banni par: {FF0000}%s, {FFFFFF}Raison: {FF0000}%s.",banned[playerid][adminbanning],banned[playerid][reason_banned]);
SendClientMessage(playerid,COLOR_ADMIN,string);
Banning[playerid] =1;
SetTimer("BanPlayer",700,0);
return 1;
}
- KillerDVX.