do not credit free vips assets
This commit is contained in:
parent
1f3c3f4f8c
commit
951a348c44
@ -73,7 +73,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
|
|
||||||
Beep( playerid );
|
Beep( playerid );
|
||||||
p_AddedEmail{ playerid } = true;
|
p_AddedEmail{ playerid } = true;
|
||||||
SetPlayerVipLevel( playerid, VIP_REGULAR, .interval = 259560 ); // 3 days of vip
|
SetPlayerVipLevel( playerid, VIP_REGULAR, .interval = 259560, .credit_assets = false ); // 3 days of vip
|
||||||
mysql_single_query( sprintf( "UPDATE `USERS` SET `USED_EMAIL`=1 WHERE `ID`=%d", p_AccountID[ playerid ] ) );
|
mysql_single_query( sprintf( "UPDATE `USERS` SET `USED_EMAIL`=1 WHERE `ID`=%d", p_AccountID[ 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 );
|
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;
|
||||||
|
@ -605,7 +605,7 @@ stock VIPToColor( viplvl )
|
|||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
stock SetPlayerVipLevel( playerid, level, interval = 2592000 )
|
stock SetPlayerVipLevel( playerid, level, interval = 2592000, bool: credit_assets = true )
|
||||||
{
|
{
|
||||||
if ( ! IsPlayerConnected( playerid ) )
|
if ( ! IsPlayerConnected( playerid ) )
|
||||||
return;
|
return;
|
||||||
@ -627,42 +627,45 @@ stock SetPlayerVipLevel( playerid, level, interval = 2592000 )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// give player appropriate notes/items
|
// give player appropriate notes/items
|
||||||
switch ( level )
|
if ( credit_assets )
|
||||||
{
|
{
|
||||||
case VIP_REGULAR:
|
switch ( level )
|
||||||
{
|
{
|
||||||
GivePlayerCash( playerid, 500000 );
|
case VIP_REGULAR:
|
||||||
}
|
{
|
||||||
case VIP_BRONZE:
|
GivePlayerCash( playerid, 500000 );
|
||||||
{
|
}
|
||||||
GivePlayerCash( playerid, 2500000 );
|
case VIP_BRONZE:
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Bronze)" # COL_WHITE );
|
{
|
||||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
GivePlayerCash( playerid, 2500000 );
|
||||||
}
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Bronze)" # COL_WHITE );
|
||||||
case VIP_GOLD:
|
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||||
{
|
}
|
||||||
GivePlayerCash( playerid, 5000000 );
|
case VIP_GOLD:
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Gold)" # COL_WHITE );
|
{
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Gold)" # COL_WHITE );
|
GivePlayerCash( playerid, 5000000 );
|
||||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House and Vehicle. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Gold)" # COL_WHITE );
|
||||||
}
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Gold)" # COL_WHITE );
|
||||||
case VIP_PLATINUM:
|
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House and Vehicle. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||||
{
|
}
|
||||||
GivePlayerCash( playerid, 12500000 );
|
case VIP_PLATINUM:
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Platinum)" # COL_WHITE );
|
{
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Platinum)" # COL_WHITE );
|
GivePlayerCash( playerid, 12500000 );
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage" # COL_WHITE );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Platinum)" # COL_WHITE );
|
||||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle and Garage. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Platinum)" # COL_WHITE );
|
||||||
}
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage" # COL_WHITE );
|
||||||
case VIP_DIAMOND:
|
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle and Garage. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||||
{
|
}
|
||||||
GivePlayerCash( playerid, 25000000 );
|
case VIP_DIAMOND:
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Diamond)" # COL_WHITE );
|
{
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Diamond)" # COL_WHITE );
|
GivePlayerCash( playerid, 25000000 );
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage (Diamond)" # COL_WHITE );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Diamond)" # COL_WHITE );
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Gate (Diamond)" # COL_WHITE );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Diamond)" # COL_WHITE );
|
||||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Weed Business (Diamond)" # COL_WHITE );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage (Diamond)" # COL_WHITE );
|
||||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle, Garage, Gate and Weed Biz. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Gate (Diamond)" # COL_WHITE );
|
||||||
|
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Weed Business (Diamond)" # COL_WHITE );
|
||||||
|
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle, Garage, Gate and Weed Biz. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user