new Nome1[MAX_PLAYER_NAME],string[128],Nome2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome1,MAX_PLAYER_NAME);
GetPlayerName(killerid,Nome2,MAX_PLAYER_NAME);
format(string, sizeof(string), "Noob %s levou pipoco de %s ate a morte",Nome1,Nome2);
SendClientMessageToAll(0xFFFFFFAA,string);
COmo faзo para quando ele se matar,apareзe outra msgn? |
if(killerid == INVALID_PLAYERID)
//Outra mensagem
// Assim
if(killerid == INVALID_PLAYERID)
{
new Nome1[MAX_PLAYER_NAME],string[128],Nome2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome1,MAX_PLAYER_NAME);
GetPlayerName(killerid,Nome2,MAX_PLAYER_NAME);
format(string, sizeof(string), "Noob %s levou pipoco de %s ate a morte",Nome1,Nome2);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
// Fiz Assim
if(killerid == INVALID_PLAYERID)
{
SendClientMessage(playerid,-1," Voce e retardado? Se matou,seu burro.!");
return 1;
}
Estou com essa funзao em OnPlayerDeath :
pawn Код:
|
if(killerid != INVALID_PLAYER_ID)
{
new Nome1[MAX_PLAYER_NAME],string[80],Nome2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome1,MAX_PLAYER_NAME);
GetPlayerName(killerid,Nome2,MAX_PLAYER_NAME);
format(string, sizeof(string), "Noob %s levou pipoco de %s ate a morte",Nome1,Nome2);
SendClientMessageToAll(0xFFFFFFAA,string);
}
else
SendClientMessage(playerid,-1," Voce e retardado? Se matou,seu burro.!");
pawn Код:
|
if(giveid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveid))
{
new length = strlen(params);
while ((idx < length) && (params[idx] <= ' '))
idx++;
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
new Nome1[MAX_PLAYER_NAME],string[80],Nome2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome1,MAX_PLAYER_NAME);
GetPlayerName(giveid,Nome2,MAX_PLAYER_NAME);
format(string, sizeof(string), "Noob %s levou pipoco de %s ate a morte",Nome1,Nome2);
SendClientMessageToAll(0xFFFFFFAA,string);
}
else
SendClientMessage(playerid,-1," Voce e retardado? Se matou,seu burro.!");
if(strcmp(cmdtext,"/kill",true, 5)==0) {
new Nome1[MAX_PLAYER_NAME],string[80],Nome2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome1,MAX_PLAYER_NAME);
GetPlayerName(killerid,Nome2,MAX_PLAYER_NAME);
format(string, sizeof(string), "Noob %s levou pipoco de %s ate a morte",Nome1,Nome2);
SendClientMessageToAll(0xFFFFFFAA,string);
}