PlayerInfo guide/tut? - 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: PlayerInfo guide/tut? (
/showthread.php?tid=125976)
PlayerInfo guide/tut? -
CrucixTM - 06.02.2010
Hey, I can't seem to find any tutorial or guide on PlayerInfo scripting?
Anyone who can enlighten me on the use of this? I wanna use it, but not sure how.
Re: PlayerInfo guide/tut? -
CrucixTM - 06.02.2010
Someone use 2 minutes and explain to me how it works? Dear god. Bump.
Re: PlayerInfo guide/tut? -
Backwardsman97 - 06.02.2010
What do you mean PlayerInfo? Like this?
pawn Код:
enum PInfo
{
kills,
deaths,
etc
}
new PlayerInfo[MAX_PLAYERS][PInfo];
Re: PlayerInfo guide/tut? -
Deat_Itself - 06.02.2010
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Re: PlayerInfo guide/tut? -
ettans - 06.02.2010
https://sampwiki.blast.hk/wiki/Advanced_Structures
https://sampwiki.blast.hk/wiki/PAWN_tutorial
Arrays and enums.
Re: PlayerInfo guide/tut? -
Bayler - 06.02.2010
Код:
enum pInfo
{
pSQLId,
pName[24],
pAssHole
}
new PlayerInfo[MAX_PLAYERS][pInfo];
1) enum arrays the list out for parsing
2) PlayerInfo is the Array Named
3) MAX_PLAYERS im sure you can figure out
4) pInfo is the arrayed Item
Example:
PlayerInfo[playerid][pAssHole] Holds a value so long as 'pAssHole' is defined in the 'enum'
This is commonly used with the value changes often like Players Money or Health.
if(PlayerInfo[playerid][pAssHole] > 0)
{
Kick(playerid);
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED,'Your Still an Asshole, We dont care WHAT the Server Says!');
Kick(playerid);
}
Re: PlayerInfo guide/tut? -
CrucixTM - 07.02.2010
In a weird sense, that helped. Thanks.