SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 19/07/2009, 08:52 PM   #1
[SOB]Chris
Big Clucker
 
Join Date: Jul 2009
Posts: 84
Reputation: 0
Default welcome msg not hide for second player

i have a problem i make a msg for the welcome, and it works but only whith the first person enter in the server, the second person show the msg but pas 8 seconds not hide i dont know why? here are the code.

Top of the script
Code:
new Text:msgbienve;
forward message(playerid);
public OnPlayerConnect(playerid)
Code:
{
	SendClientMessage(playerid,COLOR_WHITE,"Bienvenido al Servidor, para ver los comando escriba /cmds.");
	TextDrawShowForPlayer(playerid,msgbienve);
	SetTimer("message",8000,false);
	return 1;
}
public OnGameModeInit()
Code:
{
	msgbienve=TextDrawCreate(315,220,"Bienvenido~n~ ~<~ Styles of Beyond Server ~>~");
  TextDrawLetterSize(msgbienve,0.8,2.0);
	TextDrawAlignment(Text:msgbienve,2);
  TextDrawSetShadow(Text:msgbienve,1);
  TextDrawSetOutline(Text:msgbienve,1);
  TextDrawFont(Text:msgbienve,3);
  TextDrawColor(Text:msgbienve,0x000000ff);
  TextDrawBackgroundColor(Text:msgbienve,0xffffffff);
}
public message(playerid)
Code:
{
	TextDrawHideForPlayer(playerid,Text:msgbienve);//Here the hide, but???
}
the second player in enter to the server not hide the message, why?
[SOB]Chris is offline  
Old 19/07/2009, 08:54 PM   #2
Weirdosport
High-roller
 
Join Date: Jul 2008
Posts: 1,300
Reputation: 0
Default Re: welcome msg not hide for second player

The playerid doesn't magically get there on it's own accord. Replace your SetTimer line with this:

SetTimerEx("message", 8000, 0, "i", playerid);
Weirdosport is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Player marker GangMember211 Help Archive 3 06/02/2010 12:30 PM
[Help] hide player marker! GangMember211 Help Archive 3 30/01/2010 12:45 PM
Hide/show player tags Dominiks Help Archive 3 09/07/2009 10:52 AM
Hide player name and health [KMA]DlennartD Help Archive 4 04/02/2009 02:40 PM


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.