[Pedido] Chat kill pros adm
#1

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)
Reply
#2

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(STRlokasizeof(STRloka), "%s matou o emo %s usando %s."sNamefNamegunname);
    for(new 
lollol MAX_PLAYERS; ++lol)
    {
    if(
IsPlayerConnected(lol) && PlayerInfo[lol][pAdmin] >= 1)
    {
       
SendClientMessage(lol,0xFFFFFFAA,STRloka);
    }
    return 
1;

Peguei na WIKI , sу editei x)
Reply
#3

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
Reply
#4

Eu arrumei o cуdigo , tente novamente ...
Reply
#5

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
Reply
#6

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 .
Reply
#7

isso deve te dar uma base.

http://forum.sa-mp.com/showpost.php?...postcount=2631
Reply
#8

@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
Reply
#9

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
Reply
#10

@gmstrikker

й sу colocar na public OnPlayerDeath(playerid,killerid,reason)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)