Add OnPlayerWorldChange
#7

Quote:
Originally Posted by raydx
Посмотреть сообщение
Here you are:

Код:
stock _SetPlayerVirtualWorld(playerid, world)
{
	OnPlayerWorldChange(playerid, GetPlayerVirtualWorld(playerid), world);
}
#define SetPlayerVirtualWorld(%0,%1) _SetPlayerVirtualWorld(%0,%1)
Nope. This won't change the virtual world, making the Set function fairly useless.
PHP код:
stock S_SetPlayerVirtualWorldplayeridworld )
{
    
OnPlayerWorldChangeplayeridGetPlayerVirtualWorld(playerid), world );
    return 
SetPlayerVirtualWorldplayeridworld );
}
#if defined _ALS_SetPlayerVirtualWorldOnVirtualWorldChange
    #undef SetPlayerVirtualWorld
#else
    #define _ALS_SetPlayerVirtualWorld
#endif
#define SetPlayerVirtualWorld S_SetPlayerVirtualWorld 
Reply


Messages In This Thread
Add OnPlayerWorldChange - by willttoonn - 24.01.2018, 02:10
Re: Add OnPlayerWorldChange - by Abagail - 24.01.2018, 02:15
Re: Add OnPlayerWorldChange - by willttoonn - 24.01.2018, 02:18
Re: Add OnPlayerWorldChange - by MatheusDark - 24.01.2018, 02:30
Re: Add OnPlayerWorldChange - by Sew_Sumi - 24.01.2018, 03:19
Re: Add OnPlayerWorldChange - by raydx - 24.01.2018, 06:27
Re: Add OnPlayerWorldChange - by iKarim - 24.01.2018, 08:43
Re: Add OnPlayerWorldChange - by Sew_Sumi - 24.01.2018, 09:38
Re: Add OnPlayerWorldChange - by ZiGGi - 24.01.2018, 13:02
Re: Add OnPlayerWorldChange - by raydx - 24.01.2018, 17:50
Re: Add OnPlayerWorldChange - by Sew_Sumi - 24.01.2018, 17:56
Re: Add OnPlayerWorldChange - by Meller - 24.01.2018, 18:00
Re: Add OnPlayerWorldChange - by Mugala - 27.01.2018, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)