Help | Can I add a textdraw on a specific teleport?
#1

Hello guys. I am wondering if it is possible to make it ^.
I've made a teleport called - /Training in my server.
DeathMatch server btw. I have some textdraws when playerconnect:

Quote:

cvctd4 = TextDrawCreate(10.0, 434.5, "Achieve DeathMatch Community [V0.2]");
TextDrawLetterSize(cvctd4, 0.400000, 1.600000);
TextDrawUseBox(cvctd4, true);
TextDrawFont(cvctd4,1);
TextDrawColor(cvctd4,0x46BBAA00);
TextDrawBoxColor(cvctd4, 3);
TextDrawBackgroundColor(cvctd4, 126);
TextDrawUseBox(cvctd4, true);

Now, when player's enter "/Training". i want cvctd4 textdraw to get disabled "Hide".
can I just do: HideTextDrawForPlayer? when hes on Training Teleport? And to make a new one if he's on Training Teleport? should i do:


Quote:

if(!strcmp(cmdtext, "/Training", true))
{
TextDrawHideForPlayer(playerid,cvctd4[playerid]);
TextDrawShowForPlayer(playerid,Training[playerid]);
}

Quote:

if(!strcmp(cmdtext, "/LeaveTraining", true))
{
TextDrawShowForPlayer(playerid,cvctd4[playerid]);
TextDrawHideForPlayer(playerid,Training[playerid]);
}

Might work?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)