én úgytudtam nem lehet \"[playerid]\"-t berakni
de am:
new Text:TextDraw;
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TextDraw);
return 1;
}
public OnGameModeInit()
{
TextDraw = TextDrawCreate(0.0, 0.0, \"szöveg\");
TextDrawUseBox(TextDraw, 0);
// így a többi
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(TextDraw);
TextDrawDestroy(TextDraw);
return 1;
}
vagy:
forward OtherTextDraw();
new Text:TextDraw;
new ShowTextDraw[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
OtherTextDraw();
return 1;
}
public OtherTextDraw()
{
if(ShowTextDraw[playerid] = 0)
{
TextDraw = TextDrawCreate(0.0, 0.0, \"szöveg\");
TextDrawUseBox(TextDraw, 0);
// így a többi
TextDrawShowForPlayer(playerid, TextDraw);
ShowTextDraw[playerid] = 1;
}
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(TextDraw);
TextDrawDestroy(TextDraw);
return 1;
}