Tried Everything, I would like some help.
#4

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;
}
Reply


Messages In This Thread
Tried Everything, I would like some help. - by GrassHopper101 - 03.02.2014, 07:34
Re: Tried Everything, I would like some help. - by Mr.Faqahat - 03.02.2014, 07:52
Re: Tried Everything, I would like some help. - by Raza2013 - 03.02.2014, 07:57
Re: Tried Everything, I would like some help. - by GrassHopper101 - 03.02.2014, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)