13.10.2014, 13:00
hi I want to make a different this for admins.. but it dosent work.. you know what im trying to do bye the variables..tried for one hour and im sick..of this..
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new str[128];
new nume[24];
new plrIP[16];
GetPlayerName(playerid, nume, sizeof nume);
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
gpci(playerid, Code, sizeof(Code));
format(str, sizeof(str), "<UnionZone Bot> %s id: %d s-a conectat pe server. Ip: %s",nume,playerid,plrIP);
SendStaffMessage(COLOR_RED, str);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(str, sizeof(str), "(%d/%d/%d)[%d:%d:%d] Adminul %s a intrat in Server! [[ IP: %s ]] [SERIE: %s]",d,m,y,h,mi,s,nume,plrIP,Code);
AIntrareLog(str);
printf("AIntrare");
return 1;
}
else if(PlayerInfo[playerid][pAdmin] < 1)
{
new str[128];
new nume[24];
new plrIP[16];
GetPlayerName(playerid, nume, sizeof nume);
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
gpci(playerid, Code, sizeof(Code));
format(str, sizeof(str), "<UnionZone Bot> %s id: %d s-a conectat pe server. Ip: %s",nume,playerid,plrIP);
SendStaffMessage(COLOR_ORANGE, str);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(str, sizeof(str), "(%d/%d/%d)[%d:%d:%d] %s a intrat in Server! [[ IP: %s ]] [SERIE: %s]",d,m,y,h,mi,s,nume,plrIP,Code);
IntrareLog(str);
printf("Intrare");
return 1;
}