02.09.2011, 15:39
Ta ae :
PHP код:
if(strcmp(cmd,"/laptop",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(ConnectedToPC[playerid] == 255)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк desligou seu Laptop, e desconectou da Agкncia.");
ConnectedToPC[playerid] = 0;
return 1;
}
new mtext[20];
new year, month,day;
getdate(year, month, day);
if(month == 1) { mtext = "Janeiro"; }
else if(month == 2) { mtext = "Fevereiro"; }
else if(month == 3) { mtext = "Marзo"; }
else if(month == 4) { mtext = "Abril"; }
else if(month == 5) { mtext = "Maio"; }
else if(month == 6) { mtext = "Junho"; }
else if(month == 7) { mtext = "Julho"; }
else if(month == 8) { mtext = "Agosto"; }
else if(month == 9) { mtext = "Setembro"; }
else if(month == 10) { mtext = "Outubro"; }
else if(month == 11) { mtext = "Novembro"; }
else if(month == 12) { mtext = "Dezembro"; }
new hour,minuite,second;
gettime(hour,minuite,second);
FixHour(hour);
hour = shifthour;
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк abriu seu Laptop, e conectou а Agкncia.");
SendClientMessage(playerid, COLOR_WHITE, "|--Agкncia Assassino--|");
SendClientMessage(playerid, COLOR_WHITE, "|-Noticias-|");
SendClientMessage(playerid, COLOR_WHITE, "|-Contratos-|");
SendClientMessage(playerid, COLOR_WHITE, "|-Atribuir-|");
SendClientMessage(playerid, COLOR_WHITE, "|-Cargos-|");
SendClientMessage(playerid, COLOR_WHITE, "|-Logout-|");
format(string, sizeof(string), "Mкs: %s | Dia: %d | Hora: %d:%d |", mtext, day, hour+1, minuite);
SendClientMessage(playerid, COLOR_WHITE, string);
ConnectedToPC[playerid] = 255;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Hitman !");
return 1;
}
}
return 1;
}