Chat kill pros adm -
gmstrikker - 05.09.2013
Ali no chat onde escreve e tal, eu queria um chat assim (( fulano matou fulano com a arma id tal ou a arma tal )). Mas sу aparece-se pros adm if(PlayerInfo[playerid][pAdmin] >= 1)
Re: Chat kill pros adm -
darkxdll - 05.09.2013
PHP код:
public OnPlayerDeath(playerid,killerid,reason)
{
new gunname[32], STRloka[64], fName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME];
GetWeaponName(reason,gunname,sizeof(gunname));
GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
format(STRloka, sizeof(STRloka), "%s matou o emo %s usando %s.", sName, fName, gunname);
for(new lol; lol < MAX_PLAYERS; ++lol)
{
if(IsPlayerConnected(lol) && PlayerInfo[lol][pAdmin] >= 1)
{
SendClientMessage(lol,0xFFFFFFAA,STRloka);
}
return 1;
}
Peguei na WIKI , sу editei x)
Re: Chat kill pros adm -
gmstrikker - 05.09.2013
Deu uns warning vei lб embaixo no sistema de roubar
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17591) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17604) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17612) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17620) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(1762

: warning 219: local variable "string" shadows
Re: Chat kill pros adm -
darkxdll - 05.09.2013
Eu arrumei o cуdigo , tente novamente ...
Re: Chat kill pros adm -
gmstrikker - 06.09.2013
matou o Bruno_Mota usando.
Ta aparecendo assim n vem o nome do cara q matou e nem arma q usou ou o id
foi mal demorar, tava sem net
Re: Chat kill pros adm -
Samuel300 - 07.09.2013
Quote:
Originally Posted by gmstrikker
matou o Bruno_Mota usando.
Ta aparecendo assim n vem o nome do cara q matou e nem arma q usou ou o id
foi mal demorar, tava sem net
|
eu estou usando esse cod em meu gm ... achei muito interessante
e tipo q estб funcionando normal , o player mata o outro ai aparece a mensagem
Fulano matou o emo Fulano2 usando minigum .
Re: Chat kill pros adm -
Caio_Freeze - 07.09.2013
isso deve te dar uma base.
http://forum.sa-mp.com/showpost.php?...postcount=2631
Re: Chat kill pros adm -
gmstrikker - 07.09.2013
@samuel
aqui as vezes funciona, mt raro, mas funciona
@caio
Onde eu coloco isso? queria por pra chat kill de player x player tbm, n sei como usar esses ai n
Re: Chat kill pros adm -
Samuel300 - 07.09.2013
Quote:
Originally Posted by gmstrikker
@samuel
aqui as vezes funciona, mt raro, mas funciona
|
Tipo, se vc usar o comando /kill ou /darvida ou /explodir ou algo do tipo, nao irб aparecer o nome da pessoa
por exemplo irб aparecer assim '' Matou o emo fulano usando '' sу isso ...
mas se vc matar com uma arma por exemplo eagle irб aparecer '' Gmstrikker matou o emo Gmstriker2 usando Eagle ''
Sobre o chat kill de player vs player ...
й sу colocar isso
PHP код:
SendDeathMessage(killerid,playerid,reason);
https://sampwiki.blast.hk/wiki/SendDeathMessage
Re: Chat kill pros adm -
Caio_Freeze - 07.09.2013
@gmstrikker
й sу colocar na public OnPlayerDeath(playerid,killerid,reason)