PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/titulos", cmdtext, true, 8) == 0)
{
if(PlayerInfo[playerid][pKills] == 1)
{
Delete3DTextLabel(MeuTexts);
MeuTexts = Create3DTextLabel("Matou 1", COR_TITULO, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(MeuTexts, playerid, 0.0, 0.0, 0.3);
}
if(PlayerInfo[playerid][pKills] == 2)
{
Delete3DTextLabel(MeuTexts);
MeuTexts = Create3DTextLabel("Serial Killer", COR_TITULO, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(MeuTexts, playerid, 0.0, 0.0, 0.3);
}
return 1;
}
return 0;
}