26.12.2013, 10:52
Pessoal gostaria de fazer isso aqui:
Mas to com problemas, sabem me ajudar? O que ta errado?
//Topo
new Text:matou;
//Em:
public OnGameModeInit()
{
matou = TextDrawCreate(CORD X, CORD Y, CORD Z, "Matou O Player:");
return 1;
}
//Em
public OnPlayerDeath(playerid)
{
new playername[24], killername[24];
GetPlayerName(killerid, killername, sizeof(killername));
new string[128];
format(matou, sizeof(matou), "Voce matou o %s", killername);
TextDrawSetString(matou);
TextDrawShowForPlayer(playerid, matou);
SetTimerEx("TimeUp", 2000, false, "i", playerid); // Some depois de 2 segundos <<<
return 1;
}
forward TimeUp(playerid);
public TimeUp(playerid)
{
TextDrawDestroy(matou); //Destroy the created text draw.
return 1;
}
Mas to com problemas, sabem me ajudar? O que ta errado?
//Topo
new Text:matou;
//Em:
public OnGameModeInit()
{
matou = TextDrawCreate(CORD X, CORD Y, CORD Z, "Matou O Player:");
return 1;
}
//Em
public OnPlayerDeath(playerid)
{
new playername[24], killername[24];
GetPlayerName(killerid, killername, sizeof(killername));
new string[128];
format(matou, sizeof(matou), "Voce matou o %s", killername);
TextDrawSetString(matou);
TextDrawShowForPlayer(playerid, matou);
SetTimerEx("TimeUp", 2000, false, "i", playerid); // Some depois de 2 segundos <<<
return 1;
}
forward TimeUp(playerid);
public TimeUp(playerid)
{
TextDrawDestroy(matou); //Destroy the created text draw.
return 1;
}