[Tutorial] Mensaje al pie de la pantalla
4 participantes
Comunidad De Diversion Latina Y Diversion Sa-mp :: Ayuda PawnoScript :: Tutoriales Y Documentacion Pawno
Página 1 de 1.
[Tutorial] Mensaje al pie de la pantalla
Bueno, Muchos ya me han Preguntado como hacer
Asi que aca dejo la guia para poner un Mensaje al pie de la pantalla.
Tutorial
1º Paso : Vamos a la Parde de public OnPlayerConnect(playerid)
2º Paso : Va a aparecer algo como esto
Código:
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
3º Paso: Bueno Remplazar eso por esto:
new plname[MAX_PLAYER_NAME];
AllowPlayerTeleport(playerid,0);
new Text: gText;
gText = TextDrawCreate(5.0, 431.0, "~y~~>~Tu Web o mensaje~<~~w~~<~ ~>~Web o mensaje~<~");
TextDrawShowForPlayer(playerid, gText);
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0) // what the hell is this?
{
SendClientMessage(playerid, COLOR_YELLOW, "ATENCION: ha roto una de las reglas del Acuerdo, se han adoptado medidas.");
Kick(playerid);
return 1;
}
4º Paso: Compilar
y Quedaria asi en el server
Asi que aca dejo la guia para poner un Mensaje al pie de la pantalla.
Tutorial
1º Paso : Vamos a la Parde de public OnPlayerConnect(playerid)
2º Paso : Va a aparecer algo como esto
Código:
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
3º Paso: Bueno Remplazar eso por esto:
new plname[MAX_PLAYER_NAME];
AllowPlayerTeleport(playerid,0);
new Text: gText;
gText = TextDrawCreate(5.0, 431.0, "~y~~>~Tu Web o mensaje~<~~w~~<~ ~>~Web o mensaje~<~");
TextDrawShowForPlayer(playerid, gText);
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0) // what the hell is this?
{
SendClientMessage(playerid, COLOR_YELLOW, "ATENCION: ha roto una de las reglas del Acuerdo, se han adoptado medidas.");
Kick(playerid);
return 1;
}
4º Paso: Compilar
y Quedaria asi en el server
Re: [Tutorial] Mensaje al pie de la pantalla
Gracias, Lo que necesitaba xD
dark- Leecher
- Cantidad de envíos : 6
Puntos diversión latina. : 0
Fecha de inscripción : 01/03/2009
Re: [Tutorial] Mensaje al pie de la pantalla
NO MAMEN MEJOR AGAN PROGTRAMAS PARA ESTAS COSAS I QUE NO OCASIONEN ERROR=( IREN ESTO
BERNARDO- Miembro destacado
- Cantidad de envíos : 32
Puntos diversión latina. : 0
Fecha de inscripción : 30/07/2009
Re: [Tutorial] Mensaje al pie de la pantalla
eso va en el GM o en un FS porqe me dice que falto definir muchas cosas creo mira
y me dice esto
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(134) : error 021: symbol already defined: "AllowPlayerTeleport"
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(136) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(139) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(143) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(4519) : warning 203: symbol is never used: "gText"
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(4519) : warning 203: symbol is never used: "plname"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
- Código:
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"BIENVENIDO NO OLVIDE VER LAS /REGLAS Y LOS /COMANDOS",5000,5);
SendPlayerFormattedText(playerid,"Bienvenido a MATADERO-DM use /comandos para ver todos los comandos.", 0);
SendPlayerFormattedText(playerid,"al comenzar utilize /rw o /ww para seleccionar su estilo de armas o si no le gustan use /WD.", 0);
gActivePlayers[playerid]++;
gLastGaveCash[playerid] = GetTickCount();
return 1;
}
new plname[MAX_PLAYER_NAME];
AllowPlayerTeleport(playerid,0);
new Text: gText;
gText = TextDrawCreate(5.0, 431.0, "~y~~>~..::MATADERO-DM::..~<~~w~~<~ ~>~/COMANDOS - /TELES~<~");
TextDrawShowForPlayer(playerid, gText);
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0) // what the hell is this?
{
SendClientMessage(playerid, COLOR_YELLOW, "ATENCION: ha roto una de las reglas del Acuerdo, se han adoptado medidas.");
Kick(playerid);
return 1;
}
y me dice esto
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(134) : error 021: symbol already defined: "AllowPlayerTeleport"
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(136) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(139) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(143) : error 010: invalid function or declaration
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(4519) : warning 203: symbol is never used: "gText"
D:\Games\GTASAN~1\GTAONL~1\MATADE~2\GAMEMO~1\DMDM.pwn(4519) : warning 203: symbol is never used: "plname"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
[WOLF]BLASTER[X]- Miembro de oro
- Cantidad de envíos : 79
Puntos diversión latina. : 3
Fecha de inscripción : 08/05/2010
Temas similares
» [Tutorial]Segundo tutorial abrir puertos...
» [ayuda] mensaje debajo del mapa?
» [Tutorial] Telenstransportaciones con pickups.
» Mensaje- cuando los players entra y salen del server
» [Tutorial]xObjects
» [ayuda] mensaje debajo del mapa?
» [Tutorial] Telenstransportaciones con pickups.
» Mensaje- cuando los players entra y salen del server
» [Tutorial]xObjects
Comunidad De Diversion Latina Y Diversion Sa-mp :: Ayuda PawnoScript :: Tutoriales Y Documentacion Pawno
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|