Connecting my race(as in species) to /stats - 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: Connecting my race(as in species) to /stats (
/showthread.php?tid=249787)
Connecting my race(as in species) to /stats -
Andregood - 20.04.2011
How do I actually create a /stats command? I also want my races "vampire/human" in the /stats and all basic RP stuff as money and certain other vital things.
If somebody could make a sketch or at least link me the stuff I'd appreciate it, thanks.
Re: Connecting my race(as in species) to /stats -
Andregood - 20.04.2011
Bump
Re: Connecting my race(as in species) to /stats -
Markx - 20.04.2011
do you have a player info enum or something?
Re: Connecting my race(as in species) to /stats -
Andregood - 20.04.2011
Nothing that saves anything at all if that is what you're asking.
Re: Connecting my race(as in species) to /stats -
Andregood - 22.04.2011
Bump.
Re: Connecting my race(as in species) to /stats -
Ricop522 - 22.04.2011
pawn Код:
if(strcmp(cmd, "/stats", true) == 0 )
{
new iString[128], iTeam[10];
if(team[playerid] == 1) iTeam = "Vampire";
if(team[playerid] == 2) iTeam = "Human";
format(iString, sizeof(iString), "You're a %s. | You have %d Money", iTeam, GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFAA, iString);
return 1;
}
Like this?
You can change team[playerid] to your team system ..
hugss
Re: Connecting my race(as in species) to /stats -
Andregood - 22.04.2011
It gives me some errors though, I tried changing it to gTeam as well and that resulted in errors as well. Thanks anyway!