disable free vip on email email confirm
This commit is contained in:
parent
01d0b29514
commit
b38129b006
@ -8,6 +8,9 @@
|
|||||||
/* ** Includes ** */
|
/* ** Includes ** */
|
||||||
#include < YSI\y_hooks >
|
#include < YSI\y_hooks >
|
||||||
|
|
||||||
|
/* ** Configuration ** */
|
||||||
|
#define DISABLE_FREE_VIP
|
||||||
|
|
||||||
/* ** Definitions ** */
|
/* ** Definitions ** */
|
||||||
#define SECURITY_MODE_MILD ( 0 )
|
#define SECURITY_MODE_MILD ( 0 )
|
||||||
#define SECURITY_MODE_PARANOID ( 1 )
|
#define SECURITY_MODE_PARANOID ( 1 )
|
||||||
@ -63,6 +66,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
format( szBigString, sizeof( szBigString ), "SELECT * FROM `EMAILS` WHERE `ID`=%d", p_accountSecurityData[ playerid ] [ E_ID ] );
|
format( szBigString, sizeof( szBigString ), "SELECT * FROM `EMAILS` WHERE `ID`=%d", p_accountSecurityData[ playerid ] [ E_ID ] );
|
||||||
mysql_function_query( dbHandle, szBigString, true, "OnAccountGuardDelete", "d", playerid );
|
mysql_function_query( dbHandle, szBigString, true, "OnAccountGuardDelete", "d", playerid );
|
||||||
}
|
}
|
||||||
|
#if !defined DISABLE_FREE_VIP
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
if ( p_AddedEmail{ playerid } )
|
if ( p_AddedEmail{ playerid } )
|
||||||
@ -78,6 +82,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
SendGlobalMessage( COLOR_GOLD, "[EMAIL CONFIRMED]"COL_GREY" %s(%d) has confirmed their "COL_GOLD"/email"COL_GREY" and received 3 days of V.I.P!", ReturnPlayerName( playerid ), playerid );
|
SendGlobalMessage( COLOR_GOLD, "[EMAIL CONFIRMED]"COL_GREY" %s(%d) has confirmed their "COL_GOLD"/email"COL_GREY" and received 3 days of V.I.P!", ReturnPlayerName( playerid ), playerid );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -455,10 +460,12 @@ stock ShowPlayerAccountGuard( playerid )
|
|||||||
format( szBigString, sizeof( szBigString ), ""COL_WHITE"Your account email is "COL_GREEN"confirmed\t \nConfirm Email\t"COL_GREEN"%s\nSecurity Mode\t%s\n"COL_RED"Remove Irresistible Guard\t"COL_RED"approx. 24h", CensoreString( p_accountSecurityData[ playerid ] [ E_EMAIL ] ), SecurityModeToString( p_accountSecurityData[ playerid ] [ E_MODE ] ) );
|
format( szBigString, sizeof( szBigString ), ""COL_WHITE"Your account email is "COL_GREEN"confirmed\t \nConfirm Email\t"COL_GREEN"%s\nSecurity Mode\t%s\n"COL_RED"Remove Irresistible Guard\t"COL_RED"approx. 24h", CensoreString( p_accountSecurityData[ playerid ] [ E_EMAIL ] ), SecurityModeToString( p_accountSecurityData[ playerid ] [ E_MODE ] ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined DISABLE_FREE_VIP
|
||||||
// award user for adding their email
|
// award user for adding their email
|
||||||
if ( p_AddedEmail{ playerid } == false ) {
|
if ( p_AddedEmail{ playerid } == false ) {
|
||||||
strcat( szBigString, "\n"COL_GOLD"Claim Free 3 Days Of Regular VIP!\t"COL_GOLD">>>" );
|
strcat( szBigString, "\n"COL_GOLD"Claim Free 3 Days Of Regular VIP!\t"COL_GOLD">>>" );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
szBigString = ""COL_WHITE"Your account email is "COL_RED"unconfirmed\t \nConfirm Email\t"COL_GREY">>>";
|
szBigString = ""COL_WHITE"Your account email is "COL_RED"unconfirmed\t \nConfirm Email\t"COL_GREY">>>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user