09.03.2014, 23:57
pawn Код:
public OnPlayerConnect(playerid)
{
PTCump(playerid);
return 1;
}
PTCump(playerid)
{
new Hour;// hora
gettime(Hour);//Geta a hora
switch(Hour)
{
case 0..5:
GameTextForPlayer(playerid, "~b~Boa Madruga", 5000, 1);
case 6..11:
GameTextForPlayer(playerid, "~b~Bom Dia ", 5000, 1);
case 12..18:
GameTextForPlayer(playerid, "~b~Boa Tarde ", 5000, 1);
case 19..23:
GameTextForPlayer(playerid, "~b~Boa Noite" ,5000, 1);
}
return true;
}