text image 0.3d -
Don_pepe - 12.03.2012
Hello I do not see any tutorial or FS Specifically in the community of this, I bring this TextDraw that displays an image by entering the server princio, here I leave a picture to see it is:
Download In:
http://www.mediafire.com/?erixoarlypqrag6
PD: Variable TextDrawHideForPlayer would not work in OnPlayerSpawn not know why, haci the image to stay in the pantallan I think in the gamemodes that is resolved, well that's all appreciate my work and God Bless
I hope you like
not stealing credits
Re: text image 0.3d -
gabitzu4ever - 12.03.2012
nice
Re: text image 0.3d -
aco_SRBIJA - 12.03.2012
What about destorying it after player get spawned? Like;
new Text:TextDraw0[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
DestroyTextDraw(TextDraw0[playerid]);
}
yeh, it uses memory, but just when player does connect...
Anyway, Nice.
EDIT: On 0.3e, it's being showed just for 1 ms. have not tested on 0.3d, but I think it will be same. Script needs to have a timer, and during that timer, this will be show up. It should look like this:
Код:
puiblic OnGameModeInit()
{
//Stuf and all
SetTimer("ConnectPic",3000,0);
return 1;
}
forward ConnectPic(playerid);
public ConnectPic(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
}
OnPlayerConnect(playerid)
{
//stuff
ConnectPic(playerid);
}
This is how that will work. I assume you made this FS. Anyway, gj.
Re: text image 0.3d -
BaubaS - 12.03.2012
Good idea, but look at the left side of the picture
Respuesta: text image 0.3d -
Don_pepe - 12.03.2012
aco_SRBIJA: perfect friend, thank you very much did not know xD
BaubaS: I think the image is good friend, do not you like me?
Re: text image 0.3d -
BaubaS - 12.03.2012
Man.. Look at the left side of the picture, the textdraw isnt on full screen.
Respuesta: text image 0.3d -
Don_pepe - 12.03.2012
BaubaS: I know man, but even so the TextDraw this perfect.
Re: text image 0.3d -
[DOG]irinel1996 - 12.03.2012
Quote:
Originally Posted by aco_SRBIJA
What about destorying it after player get spawned? Like;
new Text:TextDraw0[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
DestroyTextDraw(TextDraw0[playerid]);
}
yeh, it uses memory, but just when player does connect...
Anyway, Nice.
EDIT: On 0.3e, it's being showed just for 1 ms. have not tested on 0.3d, but I think it will be same. Script needs to have a timer, and during that timer, this will be show up. It should look like this:
Код:
puiblic OnGameModeInit()
{
//Stuf and all
SetTimer("ConnectPic",3000,0);
return 1;
}
forward ConnectPic(playerid);
public ConnectPic(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
}
OnPlayerConnect(playerid)
{
//stuff
ConnectPic(playerid);
}
This is how that will work. I assume you made this FS. Anyway, gj.
|
LOL.
It should work just with this:
pawn Код:
public OnPlayerConnect(playerid) //Show it.
{
//---Other scripts, etc.
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public OnPlayerSpawn(playerid) //Hide it.
{
//---Other scripts, etc.
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
____________________________________________
Good job.
PD: TextDrawHideForPlayer is not an variable, it's a function. A variable could be this:
new VarExample;.
Best regards!
Re: text image 0.3d -
aco_SRBIJA - 12.03.2012
Well, it will, but it will disappear to fast.
Respuesta: text image 0.3d -
Don_pepe - 12.03.2012
irinel1996: Thank you very much for correction
aco_SRBIJA: you have to put some dialog, for the TextDraw desaparesca not quickly!
Best regards