Show Fraktion name - 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: Show Fraktion name (
/showthread.php?tid=229429)
Show Fraktion name -
herachiro - 21.02.2011
Hello in my stats command is my Team Name = 0 or 1,2,3 The Fraktion ids i whod the name of the Frkation Zivilist , Police or Medic
My Command
if (strcmp("/stats", cmdtext, true) == 0)
{
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"Name: %s\n\n[GELD: %d] [Score: %d] [AdminLevel: %d]\n\n[Team: %d] [Leader: %d] [Rank: %d]\n\n[premium: %d]",name, GetPlayerMoney(playerid),GetPlayerScore(playerid), Spieler[playerid][AdminLevel],Spieler[playerid][Team], Spieler[playerid][Leader], Spieler[playerid][Rank], Spieler[playerid][premium]);
ShowPlayerDialog(playerid,stats,DIALOG_STYLE_MSGBO X,"Deine Daten",string,"Ok","Abbrechen");
return 1;
}
pls help