30.01.2013, 15:02
Quote:
You haven't used it, you only did on OnGameModeInit Try To put it OnPlayerConnect
pawn Код:
|
pawn Код:
new Text:welcomeText;//Global Variable
new Text:infoText;//Global Variable
public OnGameModeInit
{
welcomeText = TextDrawCreate(430,5,"~w~www.***********.com");
infoText = TextDrawCreate(445,100, "~b~/cmds ~w~- /news - ~r~/rules");
//Rest of codes
return 1;
}
public OnPlayerConnect
{
TextDrawShowForPlayer(playerid,welcomeText);
TextDrawShowForPlayer(playerid,infoText);
//Rest of codes
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{ // to hide your text and for lress bugs
TextDrawHideForPlayer(playerid, welcomeText);
TextDrawHideForPlayer(playerid, infoText);
//Rest of codes
return 1;
}