new DeathNamerz[MAX_PLAYER_NAME];
new KillNamerz[MAX_PLAYER_NAME];
new str2[128];
GetPlayerName( playerid, DeathNamerz, sizeof(DeathNamerz) );
GetPlayerName ( killerid, KillNamerz, sizeof(KillNamerz) );
format( str2, sizeof(str2), " NEWS: %s has killed %s and earn points ", KillNamerz, DeathNamerz );
SendClientMessage( playerid, yellow, str2 );
NEWS: has killed Ricky and earn points
im your scripter ask me i can explain to u xD
public OnPlayerDeath(..){ new DeathNamerz[MAX_PLAYER_NAME]; new KillNamerz[MAX_PLAYER_NAME]; new str2[128]; GetPlayerName( playerid, DeathNamerz, sizeof(DeathNamerz) ); GetPlayerName ( killerid, KillNamerz, sizeof(KillNamerz) ); format( str2, sizeof(str2), " NEWS: %s has killed %s and earn points ", KillNamerz, DeathNamerz ); SendClientMessage( playerid, yellow, str2 ); return 1; } sould work |
public OnPlayerDeath(playerid, killerid, reason)
{
new pName[24], kName[24], str[128];
GetPlayerName(playerid, pName, 24); GetPlayerName(playerid, kName, 24);
format(str, sizeof(str), "[NEWS] %s killed %s and earned some points", kName, pName);
SendClientMessageToAll(yellow, str);
//Try that, its pretty much the same, just without the seperation colon. - I had problems with that the other day
return 1;
}