SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 06/02/2010, 02:49 PM   #1
CrucixTM
Huge Clucker
 
CrucixTM's Avatar
 
Join Date: Jan 2010
Location: Denmark
Posts: 293
Reputation: 7
Default PlayerInfo guide/tut?

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.
__________________
Experienced mapper - Mapping anything for as low as 1 Euro(€)! - PM me if you need something mapped properly!
CrucixTM is offline  
Old 06/02/2010, 05:43 PM   #2
CrucixTM
Huge Clucker
 
CrucixTM's Avatar
 
Join Date: Jan 2010
Location: Denmark
Posts: 293
Reputation: 7
Default Re: PlayerInfo guide/tut?

Someone use 2 minutes and explain to me how it works? Dear god. Bump.
__________________
Experienced mapper - Mapping anything for as low as 1 Euro(€)! - PM me if you need something mapped properly!
CrucixTM is offline  
Old 06/02/2010, 06:49 PM   #3
Backwardsman97
High-roller
 
Backwardsman97's Avatar
 
Join Date: Nov 2007
Posts: 1,501
Reputation: 36
Default Re: PlayerInfo guide/tut?

What do you mean PlayerInfo? Like this?

pawn Code:
enum PInfo
{
   kills,
   deaths,
   etc
}

new PlayerInfo[MAX_PLAYERS][PInfo];
Backwardsman97 is offline  
Old 06/02/2010, 06:52 PM   #4
Deat_Itself
Gangsta
 
Join Date: May 2009
Location: UAE (Abudhabi,Shahama)
Posts: 595
Reputation: 4
Default Re: PlayerInfo guide/tut?

http://wiki.sa-mp.com/wiki/Creating_...n_FilterScript
Deat_Itself is offline  
Old 06/02/2010, 06:53 PM   #5
ettans
Huge Clucker
 
ettans's Avatar
 
Join Date: Feb 2008
Posts: 388
Reputation: 29
Default Re: PlayerInfo guide/tut?

http://wiki.sa-mp.com/wiki/Advanced_Structures
http://wiki.sa-mp.com/wiki/PAWN_tutorial

Arrays and enums.
__________________
ettans is offline  
Old 06/02/2010, 06:57 PM   #6
Bayler
Big Clucker
 
Join Date: Aug 2008
Posts: 87
Reputation: 0
Default Re: PlayerInfo guide/tut?

Code:
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);
}
Bayler is offline  
Old 07/02/2010, 12:05 AM   #7
CrucixTM
Huge Clucker
 
CrucixTM's Avatar
 
Join Date: Jan 2010
Location: Denmark
Posts: 293
Reputation: 7
Default Re: PlayerInfo guide/tut?

In a weird sense, that helped. Thanks.
__________________
Experienced mapper - Mapping anything for as low as 1 Euro(€)! - PM me if you need something mapped properly!
CrucixTM is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CORRECÇÃO] PlayerInfo Blacknedvertigo Português/Portuguese 2 07/05/2010 06:00 PM
[SOLVED] PlayerInfo FreddeN Help Archive 4 04/11/2009 09:24 PM
/playerinfo [ATC]eRaZoR Help Archive 11 17/10/2009 01:26 PM
PlayerInfo Question CyberGuerilla Help Archive 1 12/02/2009 09:50 AM
strmid(PlayerInfo SuperS0nic Help Archive 5 04/02/2009 01:01 PM


All times are GMT. The time now is 07:41 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.