03.02.2014, 20:50
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,green,"You died.");
GivePlayerMoney(killerid,1000);
GivePlayerMoney(playerid,-100);
new playername[24], killername[24];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(killerid, killername, sizeof(killername));
new string[128];
format(string, sizeof(string), "%s killed %s", killername, playername);
new string2[128];
format(string2, sizeof(string2), "%s has murdered %s", killername, playername);
Now I can't figure out how to send a random string to all players. I want it to sendrandommessage either string or string2
return 1;
}
{
SendClientMessage(playerid,green,"You died.");
GivePlayerMoney(killerid,1000);
GivePlayerMoney(playerid,-100);
new playername[24], killername[24];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(killerid, killername, sizeof(killername));
new string[128];
format(string, sizeof(string), "%s killed %s", killername, playername);
new string2[128];
format(string2, sizeof(string2), "%s has murdered %s", killername, playername);
Now I can't figure out how to send a random string to all players. I want it to sendrandommessage either string or string2
return 1;
}