[Ayuda]Comandos
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/dia", cmdtext, true)==0)
  {
    SetPlayerTime(playerid,12,0);
    SendClientMessage(playerid, Color, "Hora cambiada a las 12 de la maсana.");
    return 1;
  }

  if (strcmp("/noche", cmdtext, true)==0)
  {
    SetPlayerTime(playerid,0,0);
    SendClientMessage(playerid, Color, "Hora cambiada a las 12 de la madrugada.");
    return 1;
  }

  if (strcmp("/tarde", cmdtext, true)==0)
  {
    SetPlayerTime(playerid,18,0);
    SendClientMessage(playerid, Color, "Hora cambiada a las 6 de la tarde.");
    return 1;
  }

  if (strcmp("/amanecer", cmdtext, true)==0)
  {
    SetPlayerTime(playerid,5,0);
    SendClientMessage(playerid, Color, "Hora cambiada a las 5 de la maсana.");
    return 1;
  }
  return 0;
}
Ya aсades lo que mбs quieras.
Reply


Messages In This Thread
[Ayuda]Comandos - by lordkiller25 - 08.03.2010, 22:04
Re: [Ayuda]Comandos - by TheChaoz - 08.03.2010, 22:35
Re: [Ayuda]Comandos - by lordkiller25 - 09.03.2010, 00:04
Re: [Ayuda]Comandos - by Cesar_Biker - 09.03.2010, 06:42
Re: [Ayuda]Comandos - by CristianTdj - 10.03.2010, 13:23
Re: [Ayuda]Comandos - by CristianTdj - 10.03.2010, 13:27
Re: [Ayuda]Comandos - by differo - 10.03.2010, 13:41
Re: [Ayuda]Comandos - by CristianTdj - 10.03.2010, 20:13
Re: [Ayuda]Comandos - by differo - 10.03.2010, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)