gametext report - 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)
+--- Thread: gametext report (
/showthread.php?tid=582344)
gametext report -
suni - 20.07.2015
is there a way to make a gametext report for admins? if yes can you help me?
Код:
GameTextForPlayer(Admin, "%s(ID:%d) has reported ~n~%s(ID:%d) ~n~reason %s.", 5000, 5, GetName(playerid), playerid, GetName(id), id, reason);
Re: gametext report -
Jefff - 20.07.2015
https://sampwiki.blast.hk/wiki/Format
AW: gametext report -
Nero_3D - 20.07.2015
Sure there is
You need to format the message first and than send it to the players you want (also the admins)
pawn Код:
new
string[128]
;
format(string, sizeof string, "text", ...);
for(new i; i < MAX_PLAYERS; ++i) {
if(IsPlayerAdmin(i)) { // Replace that will your admin variable
GameTextForPlayer(i, string, 5000, 4);
}
}
Re: gametext report -
simo0000 - 20.07.2015
pawn Код:
new string[128];
format(string, 128, "%s(ID:%d) has reported ~n~%s(ID:%d) ~n~reason %s.", GetName(playerid), playerid, GetName(id), id, reason)
for(new i; i < MAX_PLAYERS; ++i) {
if(IsPlayerAdmin(i)) {
GameTextForPlayer(i, string, 5000, 5);
}
}
rep me plz if i helped you
Re: gametext report -
Glenn332 - 20.07.2015
Quote:
Originally Posted by simo0000
pawn Код:
new string[128]; format(string, 128, "%s(ID:%d) has reported ~n~%s(ID:%d) ~n~reason %s.", GetName(playerid), playerid, GetName(id), id, reason) for(new i; i < MAX_PLAYERS; ++i) { if(IsPlayerAdmin(i)) { GameTextForPlayer(i, string, 5000, 5); } }
rep me plz if i helped you
|
Change :
To