Talk:OnPlayerRequestClass

From SA-MP Wiki

Jump to: navigation, search

Called on F4

The note says that this callback is also called when a player presses F4. However, I have reason to believe that this is not true.
This piece of code, for example, will not print anything when a player presses F4.

public OnPlayerRequestClass(playerid, classid)
{	
	printf("OnPlayerRequestClass(%d, %d) - Player State: %d", playerid, classid, GetPlayerState(playerid));
        return 1;
}

--Vince 00:53, 30 April 2011 (CEST)

Fixed?

It could have been fixed since that was written. If you're 100% sure it's wrong, you're allowed to edit it.

Return Values

I'm not sure the return value info is correct. It seems to be confused with OnPlayerRequestSpawn. I have not tested this, and will do if I remember, but if anyone else could test it that'd be nice. Smithy 06:24, 10 April 2013 (CEST)

Personal tools
Navigation
Toolbox