Posts: 19
Threads: 6
Joined: Feb 2014
Reputation:
0
What I want to do is have the server send out random messages to the players on the server, see now, I already know how to do that but my problem is, its a %s has killed %s type of deal, and I can't figure out how to properly make it say %s has killed %s, or randomly say %s has murdered %s, Sort of like sending random strings to all players, get what I am saying?
Posts: 329
Threads: 30
Joined: Nov 2011
Reputation:
0
Maybe you need to be more precise. We are not able to understand your Point.
I guess you are having a Problem With String ?
Posts: 342
Threads: 24
Joined: Feb 2013
if you're missing some text so use this
Posts: 19
Threads: 6
Joined: Feb 2014
Reputation:
0
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;
}