30.08.2015, 11:43
I am really new to scripting, so sorry for newbie mistakes -
new Text:DMTeam1Score;
new Text:DMTeam2Score;
public OnFilterScriptInit()
{
DMTeam1Score = TextDrawCreate(460.0,100.0,"Team 1 Points - 0");
TextDrawColor(DMTeam1Score, 0xFF0000FF);
DMTeam2Score = TextDrawCreate(460.0,115.0,"Team 2 Points - 0");
TextDrawColor(DMTeam2Score, 0x0000FFFF);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
TextDrawShowForPlayer(playerid, DMTeam1Score);
TextDrawShowForPlayer(playerid, DMTeam2Score);
}
What should i put under OnPlayerDeath to add a point to the "0" in each Textdraw?
new Text:DMTeam1Score;
new Text:DMTeam2Score;
public OnFilterScriptInit()
{
DMTeam1Score = TextDrawCreate(460.0,100.0,"Team 1 Points - 0");
TextDrawColor(DMTeam1Score, 0xFF0000FF);
DMTeam2Score = TextDrawCreate(460.0,115.0,"Team 2 Points - 0");
TextDrawColor(DMTeam2Score, 0x0000FFFF);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
TextDrawShowForPlayer(playerid, DMTeam1Score);
TextDrawShowForPlayer(playerid, DMTeam2Score);
}
What should i put under OnPlayerDeath to add a point to the "0" in each Textdraw?