if (Player[playerid][ppkiller] == 0)
{
TextDrawDestroy(painkiller[playerid]);
TextDrawDestroy(painkiller1[playerid]);
}
if (Player[playerid][ppkiller] == 0)
{
TextDrawDestroy(painkiller[playerid]);
TextDrawDestroy(painkiller1[playerid]);
}
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(1114) : warning 213: tag mismatch D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(1115) : warning 213: tag mismatch |
public OnPlayerDeath(playerid, killerid, reason)
{
// Funзгo para desaparecer as Textdraw! Exemplo:
TextDrawShowForPlayer(playerid, SuaText); //caso morrer
TextDrawShowForPlayer(killerid, SuaText); //caso matar
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, SuaText); //desaparecer a text
return 1;
}
if(Player[playerid][ppkiller] == 1)
{
PlayerTextDrawShow(playerid, painkiller[playerid]); // Mostrar todos os HUDS quando da spawn
PlayerTextDrawShow(playerid, painkiller1[playerid]); // Mostrar todos os HUDS quando da spawn
}
else
{
PlayerTextDrawHide(playerid, painkiller[playerid]); // esconder os HUDS quando morrer
PlayerTextDrawHide(playerid, painkiller1[playerid]); // esconder os HUDS quando morre
}
Player[playerid][ppkiller] = 0;
{
Player[playerid][ppkiller] = 1;
PlayerTextDrawShow(playerid, painkiller[playerid]); // Mostrar todos os HUDS quando da spawn
PlayerTextDrawShow(playerid, painkiller1[playerid]); // Mostrar todos os HUDS quando da spawn
}
Jб que ta a usar parametros playerid entгo й uma PlayerTextDraw!
https://sampwiki.blast.hk/wiki/PlayerTextDrawDestroy |
if(!strcmp(ItemName,"Painkiller",true)) { SetPlayerDrunkLevel(playerid, 0); PlayerTextDrawHide(playerid, painkiller[playerid]); // esconder as textdraws PlayerTextDrawHide(playerid, painkiller1[playerid]); // esconder as textdraws ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~ n~~r~~h~Healing....",1000,3); RemoveItem(playerid, ItemName, 1); } |
PlayerTextDrawShow(playerid, painkiller[playerid]);
PlayerTextDrawShow(playerid, painkiller1[playerid]);
PlayerTextDrawHide(playerid, painkiller[playerid]);
PlayerTextDrawHide(playerid, painkiller1[playerid]);
PlayerTextDrawDestroy(playerid, painkiller[playerid]);
PlayerTextDrawDestroy(playerid, painkiller1[playerid]);
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
//playerid assasino atacante
//damagedid vitima do ataque
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
//playerid vitima do ataque
//damagedid assasino atacante
return 1;
}
new Morto[MAX_PLAYERS];
//OnPlayerDeath
Morto[playerid] = 1;
Player[playerid][ppkiller] = 0;
//OnPlayerSpawn
Morto[playerid] = 0;
if(Player[playerid][ppkiller] == 1)
{
PlayerTextDrawShow(playerid, painkiller[playerid]); // Mostrar todos os HUDS quando da spawn
PlayerTextDrawShow(playerid, painkiller1[playerid]); // Mostrar todos os HUDS quando da spawn
}
else
{
PlayerTextDrawHide(playerid, painkiller[playerid]); // esconder os HUDS quando morrer
PlayerTextDrawHide(playerid, painkiller1[playerid]); // esconder os HUDS quando morre
}
//OnPlayerTakeDamage
if(Morto[playerid] == 0 && Player[playerid][ppkiller] == 0)
{
Player[playerid][ppkiller] = 1;
PlayerTextDrawShow(playerid, painkiller[playerid]); // Mostrar todos os HUDS quando da spawn
PlayerTextDrawShow(playerid, painkiller1[playerid]); // Mostrar todos os HUDS quando da spawn
}