14.12.2014, 17:27
(
Последний раз редактировалось Zodiaco; 23.12.2014 в 01:46.
)
Hola amigos del samp aqui pidiendoles su ayuda... Cree unos mensajes de bienvenida despuйs de hacer Spawn, como podrнa hacer para que no vuelva a salir el mensaje de bienvenida... lo que sucede que al spawnear entra bien y sale el mensaje pero a lo que muero y vuelvo a spawnear sale nuevamente el mensaje.
como puedo hacer para solo me aparesca el mensaje solo al inicio cuando entre por primera vez y haga spawn no a cada instante despues de muerto..
muchas gracias
como puedo hacer para solo me aparesca el mensaje solo al inicio cuando entre por primera vez y haga spawn no a cada instante despues de muerto..
pawn Код:
new Text:Texto1;
new Text:Texto2;
new Text:Texto3
public OnPlayerSpawn(playerid)
{
SetTimerEx("ServerNombre", 8000, 0, "d", playerid);
TextDrawShowForPlayer(playerid, Texto1);
TextDrawShowForPlayer(playerid, Texto2);
TextDrawShowForPlayer(playerid, Texto3);
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(Texto1);
TextDrawDestroy(Texto1);
TextDrawHideForAll(Texto2);
TextDrawDestroy(Texto2);
TextDrawHideForAll(Texto2);
TextDrawDestroy(Texto2);
return 1;
}
public OnGameModeInit()
{
Texto1 = TextDrawCreate(212.000000, 122.000000, ".::Bienvenido al Server::.");
TextDrawBackgroundColor(Texto1, 255);
TextDrawFont(Texto1, 1);
TextDrawLetterSize(Texto1, 0.479999, 2.099999);
TextDrawColor(Texto1, -67436289);
TextDrawSetOutline(Texto1, 0);
TextDrawSetProportional(Texto1, 1);
TextDrawSetShadow(Texto1, 1);
Texto2 = TextDrawCreate(239.000000, 141.000000, "~w~Version actual: ~g~0.5");
TextDrawBackgroundColor(Texto2, 255);
TextDrawFont(Texto2, 1);
TextDrawLetterSize(Texto2, 0.469999, 1.899999);
TextDrawColor(Texto2, -1);
TextDrawSetOutline(Texto2, 0);
TextDrawSetProportional(Texto2, 1);
TextDrawSetShadow(Texto2, 1);
Texto3 = TextDrawCreate(235.000000, 158.000000, "~r~~h~www.miweb.tk");
TextDrawBackgroundColor(Texto3, 255);
TextDrawFont(Texto3, 1);
TextDrawLetterSize(Texto3, 0.490000, 1.800000);
TextDrawColor(Texto3, -1);
TextDrawSetOutline(Texto3, 0);
TextDrawSetProportional(Texto3, 1);
TextDrawSetShadow(Texto3, 1);
return 1;
}
forward ServerNombre(playerid);
public ServerNombre(playerid)
{
TextDrawHideForPlayer(playerid, Texto1);
TextDrawHideForPlayer(playerid, Texto2);
TextDrawHideForPlayer(playerid, Texto3);
}