# GetPlrMagic

Player
4.6.5.0 CP
bool / id
int player Player whose magic knowledge you want to determine.
id id With id specified the function returns true, if the specified player knows the specified spell. In this case index is ignored.
int index With index specified the function returns the indicated spell from the player's list of known spells.
Determines magic spell knowledge of a player.
if
(GetPlrMagic(0,MLGT)) Log("Spieler %s kann Blitze zaubern",GetPlayerName(0));
If player 0 knows the lightning spell (MGLT), a message is displayed.
var spell;

spell = GetPlrMagic(0,0,4); Log("Der fünfte Zauberspruch des Spielers ist %i",spell);
Returns the id of the fifth spell of the first player.
jwk
2002-06