SA-MP Forums Archive
Would this work ? ^^ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Would this work ? ^^ (/showthread.php?tid=74603)



Would this work ? ^^ - Bearfist - 24.04.2009

I want to create a message onplayerdeath like this

Код:
format(string,sizeof(string),"%s : %s killed %s : %s !",playerid,gTeam[playerid],killerid,gTeam[killerid]);
SendClientMessageToAll(COLOR_BLUE,string);
The Result should be seen like this-->
Grove Street Family:Markus killed Ballas:Jonas

gTeam and all is working ^^

Would it works like I want it ?

MFG Bearfist



Re: Would this work ? ^^ - Khelif - 24.04.2009

Код:
format(string,sizeof(string),"%s : %s killed %s : %s !",gTeam[killerid],PlayerName(killerid),gTeam[playerid],PlayerName(playerid));
SendClientMessageToAll(COLOR_BLUE,string);
Код:
stock PlayerName(playerid) {

	new Name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Name, sizeof(Name));
	return Name;
}



Re: Would this work ? ^^ - Bearfist - 24.04.2009

Thanks ...
added to my script

MFG Bearfist