26.01.2013, 14:10
No me funciona
onplayerconnect
onplayerconnect
pawn Код:
CrearTextPublicidad(playerid); //crea textdraws
PublicidadNum = 0;
SetTimer("Publicidad",10000,1);
pawn Код:
public Publicidad(playerid)
{
if(PublicidadNum == 0)
{
TextDrawHideForPlayer(playerid,PublicidadTexto[playerid]);
TextDrawSetString(PublicidadTexto[playerid],"asd");
TextDrawShowForPlayer(playerid,PublicidadTexto[playerid]);
PublicidadNum = 1;
return 1;
}
if(PublicidadNum == 1)
{
TextDrawHideForPlayer(playerid,PublicidadTexto[playerid]);
TextDrawSetString(PublicidadTexto[playerid],"asdf! ");
TextDrawShowForPlayer(playerid,PublicidadTexto[playerid]);
PublicidadNum = 2;
return 1;
}
if(PublicidadNum == 2)
{
TextDrawHideForPlayer(playerid,PublicidadTexto[playerid]);
TextDrawSetString(PublicidadTexto[playerid],"asdgfhah");
TextDrawShowForPlayer(playerid,PublicidadTexto[playerid]);
PublicidadNum = 3;
return 1;
}
if(PublicidadNum == 3)
{
TextDrawHideForPlayer(playerid,PublicidadTexto[playerid]);
TextDrawSetString(PublicidadTexto[playerid],"akjhgkjashglkhasdiguhasdg");
TextDrawShowForPlayer(playerid,PublicidadTexto[playerid]);
PublicidadNum = 0;
return 1;
}
return 1;
}