SA-MP Forums Archive
pInfo - 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: pInfo (/showthread.php?tid=137312)



pInfo - Packer5 - 28.03.2010

Hey
I can't find any tutorials online about how to use pInfo.

I need it to disable commands at certain times etc.. and I havent got a clue how..

Does anyone know a tutorial I could use?

thanks


Re: pInfo - Packer5 - 28.03.2010

no?


Re: pInfo - Hot - 28.03.2010

pInfo is a common variable used for save Player Information, they use it as a Multidimensional Array, so tecnically you create a variable that represent all the player information. Example:

Код:
// Enumerating the all the player's information
enum pInformation { 
   pHealth,
   pArmour,
   pCash
};

// Creating the array that will contain the player's information
// The size is the numbers of the max players in the server, and othere [ ] is what that will hold
new pInfo[MAX_PLAYERS][pInformation];
Hope it helps...


Re: pInfo - Packer5 - 28.03.2010

thanks Hot