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
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
new Text:msgbienve;
forward message(playerid);
public OnPlayerConnect(playerid)
	SendClientMessage(playerid,COLOR_WHITE,"Bienvenido al Servidor, para ver los comando escriba /cmds.");
	return 1;
public OnGameModeInit()
	msgbienve=TextDrawCreate(315,220,"Bienvenido~n~ ~<~ Styles of Beyond Server ~>~");
public message(playerid)
	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
Join Date: Jul 2008
Posts: 1,293
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 06:06 AM.

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