moviemode xp tds moved to experience.pwn
This commit is contained in:
parent
ecf10abe5c
commit
f5e1a4565c
@ -177,6 +177,26 @@ hook OnPlayerDisconnect( playerid, reason )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hook OnPlayerMovieMode( playerid, bool: toggled )
|
||||||
|
{
|
||||||
|
if ( toggled )
|
||||||
|
{
|
||||||
|
TextDrawShowForPlayer( playerid, g_CurrentRankTD );
|
||||||
|
TextDrawShowForPlayer( playerid, g_currentXPTD );
|
||||||
|
PlayerTextDrawShow( playerid, p_ExperienceTD[ playerid ] );
|
||||||
|
ShowPlayerIrresistibleRank( playerid );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextDrawHideForPlayer( playerid, g_CurrentRankTD );
|
||||||
|
TextDrawHideForPlayer( playerid, g_currentXPTD );
|
||||||
|
PlayerTextDrawHide( playerid, p_ExperienceTD[ playerid ] );
|
||||||
|
PlayerTextDrawHide( playerid, p_PlayerRankTD[ playerid ] );
|
||||||
|
PlayerTextDrawHide( playerid, p_PlayerRankTextTD[ playerid ] );
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* ** Commands ** */
|
/* ** Commands ** */
|
||||||
CMD:experience( playerid, params[ ] ) return cmd_level( playerid, params );
|
CMD:experience( playerid, params[ ] ) return cmd_level( playerid, params );
|
||||||
CMD:levels( playerid, params[ ] ) return cmd_level( playerid, params );
|
CMD:levels( playerid, params[ ] ) return cmd_level( playerid, params );
|
||||||
@ -458,4 +478,4 @@ stock SetPlayerSeasonalXP( playerid, Float: seasonal_xp ) {
|
|||||||
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 6 as LEVEL_ID, (BLEW_JAILS + BLEW_VAULT) * 6.0 AS EXPERIENCE FROM USERS);
|
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 6 as LEVEL_ID, (BLEW_JAILS + BLEW_VAULT) * 6.0 AS EXPERIENCE FROM USERS);
|
||||||
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 7 as LEVEL_ID, VEHICLES_JACKED * 6.0 AS EXPERIENCE FROM USERS);
|
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 7 as LEVEL_ID, VEHICLES_JACKED * 6.0 AS EXPERIENCE FROM USERS);
|
||||||
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 8 as LEVEL_ID, (METH_YIELDED + (TRUCKED*0.33)) * 6.0 AS EXPERIENCE FROM USERS);
|
INSERT INTO USER_LEVELS (USER_ID, LEVEL_ID, EXPERIENCE) (SELECT ID as USER_ID, 8 as LEVEL_ID, (METH_YIELDED + (TRUCKED*0.33)) * 6.0 AS EXPERIENCE FROM USERS);
|
||||||
*/
|
*/
|
||||||
|
@ -6145,10 +6145,7 @@ CMD:moviemode( playerid, params[ ] )
|
|||||||
case true:
|
case true:
|
||||||
{
|
{
|
||||||
ShowPlayerTogglableTextdraws( playerid );
|
ShowPlayerTogglableTextdraws( playerid );
|
||||||
TextDrawShowForPlayer( playerid, g_CurrentRankTD );
|
|
||||||
TextDrawShowForPlayer( playerid, g_currentXPTD );
|
|
||||||
PlayerTextDrawShow( playerid, p_LocationTD[ playerid ] );
|
PlayerTextDrawShow( playerid, p_LocationTD[ playerid ] );
|
||||||
PlayerTextDrawShow( playerid, p_ExperienceTD[ playerid ] );
|
|
||||||
if ( IsDoubleXP( ) ) TextDrawShowForPlayer( playerid, g_DoubleXPTD );
|
if ( IsDoubleXP( ) ) TextDrawShowForPlayer( playerid, g_DoubleXPTD );
|
||||||
TextDrawShowForPlayer( playerid, g_WebsiteTD );
|
TextDrawShowForPlayer( playerid, g_WebsiteTD );
|
||||||
if ( p_WantedLevel[ playerid ] ) PlayerTextDrawShow( playerid, p_WantedLevelTD[ playerid ] );
|
if ( p_WantedLevel[ playerid ] ) PlayerTextDrawShow( playerid, p_WantedLevelTD[ playerid ] );
|
||||||
@ -6157,7 +6154,6 @@ CMD:moviemode( playerid, params[ ] )
|
|||||||
if ( p_FPSCounter{ playerid } ) TextDrawShowForPlayer( playerid, p_FPSCounterTD[ playerid ] );
|
if ( p_FPSCounter{ playerid } ) TextDrawShowForPlayer( playerid, p_FPSCounterTD[ playerid ] );
|
||||||
if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD );
|
if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD );
|
||||||
TextDrawShowForPlayer( playerid, g_WorldDayTD );
|
TextDrawShowForPlayer( playerid, g_WorldDayTD );
|
||||||
ShowPlayerIrresistibleRank( playerid );
|
|
||||||
PlayerTextDrawShow( playerid, g_ZoneOwnerTD[ playerid ] );
|
PlayerTextDrawShow( playerid, g_ZoneOwnerTD[ playerid ] );
|
||||||
for( new i; i < sizeof( g_MovieModeTD ); i ++ ) TextDrawHideForPlayer( playerid, g_MovieModeTD[ i ] );
|
for( new i; i < sizeof( g_MovieModeTD ); i ++ ) TextDrawHideForPlayer( playerid, g_MovieModeTD[ i ] );
|
||||||
p_inMovieMode{ playerid } = false;
|
p_inMovieMode{ playerid } = false;
|
||||||
@ -6167,16 +6163,11 @@ CMD:moviemode( playerid, params[ ] )
|
|||||||
{
|
{
|
||||||
PlayerTextDrawHide( playerid, g_ZoneOwnerTD[ playerid ] );
|
PlayerTextDrawHide( playerid, g_ZoneOwnerTD[ playerid ] );
|
||||||
HidePlayerTogglableTextdraws( playerid );
|
HidePlayerTogglableTextdraws( playerid );
|
||||||
TextDrawHideForPlayer( playerid, g_CurrentRankTD );
|
|
||||||
TextDrawHideForPlayer( playerid, g_currentXPTD );
|
|
||||||
PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] );
|
PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] );
|
||||||
PlayerTextDrawHide( playerid, p_ExperienceTD[ playerid ] );
|
|
||||||
PlayerTextDrawHide( playerid, p_WantedLevelTD[ playerid ] );
|
PlayerTextDrawHide( playerid, p_WantedLevelTD[ playerid ] );
|
||||||
TextDrawHideForPlayer( playerid, g_WebsiteTD );
|
TextDrawHideForPlayer( playerid, g_WebsiteTD );
|
||||||
TextDrawHideForPlayer( playerid, g_AdminOnDutyTD );
|
TextDrawHideForPlayer( playerid, g_AdminOnDutyTD );
|
||||||
TextDrawHideForPlayer( playerid, g_DoubleXPTD );
|
TextDrawHideForPlayer( playerid, g_DoubleXPTD );
|
||||||
PlayerTextDrawHide( playerid, p_PlayerRankTD[ playerid ] );
|
|
||||||
PlayerTextDrawHide( playerid, p_PlayerRankTextTD[ playerid ] );
|
|
||||||
TextDrawHideForPlayer( playerid, g_MotdTD );
|
TextDrawHideForPlayer( playerid, g_MotdTD );
|
||||||
TextDrawHideForPlayer( playerid, g_NotManyPlayersTD );
|
TextDrawHideForPlayer( playerid, g_NotManyPlayersTD );
|
||||||
TextDrawHideForPlayer( playerid, g_WorldDayTD );
|
TextDrawHideForPlayer( playerid, g_WorldDayTD );
|
||||||
|
Loading…
Reference in New Issue
Block a user