SA-MP Forums Archive
[Ajuda] CRIAR CHAT kill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] CRIAR CHAT kill (/showthread.php?tid=261296)



[Ajuda] CRIAR CHAT kill - Lohran - 12.06.2011

tipo galera eu queria sу o cуdigo e saber onde colocar pq n sei don de tem que colocar


Re: [Ajuda] CRIAR CHAT kill - JonathanFeitosa - 12.06.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return true;
}



Re: [Ajuda] CRIAR CHAT kill - Ricop522 - 12.06.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/kill", true) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 0x01;
    }
    return 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 0x01;
}



Re: [Ajuda] CRIAR CHAT kill - TheGarfield - 12.06.2011

pawn Код:
SendDeathMessage(playerid, -1, 200); // OnPlayerConnect

SendDeathMessage(killerid, playerid, reason); //OnPlayerDeath


SendDeathMessage(killerid, -1, 201); // OnPlayer Disconnect



Re: [Ajuda] CRIAR CHAT kill - Andrew_Guiga - 12.06.2011

mano usa search ou procura no ****** deve ter uns 500 posts sobre chat kill no samp wiki tbm tem


Re: [Ajuda] CRIAR CHAT kill - Shadoww5 - 12.06.2011

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
pawn Код:
SendDeathMessage(playerid, -1, 200); // OnPlayerConnect

SendDeathMessage(killerid, playerid, reason); //OnPlayerDeath


SendDeathMessage(killerid, -1, 201); // OnPlayer Disconnect
Por que colocar "-1" ?

E por que no OnPlayerDisconnect vocк usou "killerid" e nгo "playerid" ?


Re: [Ajuda] CRIAR CHAT kill - [BGL]jonas_OwNer - 12.06.2011

Search

https://sampforum.blast.hk/showthread.php?tid=144744&page=40


Serб que й tгo dificil clica no botгo "Search" e digitar Chat Kill ?.


Re: [Ajuda] CRIAR CHAT kill - TheGarfield - 12.06.2011

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Por que colocar "-1" ?

E por que no OnPlayerDisconnect vocк usou "killerid" e nгo "playerid" ?
-1 = INVALID_PLAYER_ID

killerid = Quem Matou ( Somente no OnPlayerDeath )
playerid = Quem Morreu (Somente no OnPlayerDeath )


Re: [Ajuda] CRIAR CHAT kill - Shadoww5 - 12.06.2011

Quote:
Originally Posted by [BGL]jonas_OwNer
Посмотреть сообщение
Search

https://sampforum.blast.hk/showthread.php?tid=144744&page=40


Serб que й tгo dificil clica no botгo "Search" e digitar Chat Kill ?.
Vocк jб nao viu que o problema foi solucionado ?

Para que vir aqui reclamar ?

#EDIT

Mas por que colocar esse "-1" e "killerid" ? To sem entender ainda ...


Re: [Ajuda] CRIAR CHAT kill - Andrew_Guiga - 13.06.2011

ta mano mais concordo com jonas pq tipo qual dificuldade de ir no ****** e depois se nгo achar vir aqui no forum usar search mano o cara perdeu mais tempo vindo aqui posta que usa search e ainda enche o forum de topicos repitidos...