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 );
|
||||
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 ] ) );
|
||||
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;
|
||||
|
@ -605,7 +605,7 @@ stock VIPToColor( viplvl )
|
||||
return string;
|
||||
}
|
||||
|
||||
stock SetPlayerVipLevel( playerid, level, interval = 2592000 )
|
||||
stock SetPlayerVipLevel( playerid, level, interval = 2592000, bool: credit_assets = true )
|
||||
{
|
||||
if ( ! IsPlayerConnected( playerid ) )
|
||||
return;
|
||||
@ -627,42 +627,45 @@ stock SetPlayerVipLevel( playerid, level, interval = 2592000 )
|
||||
}
|
||||
|
||||
// give player appropriate notes/items
|
||||
switch ( level )
|
||||
if ( credit_assets )
|
||||
{
|
||||
case VIP_REGULAR:
|
||||
switch ( level )
|
||||
{
|
||||
GivePlayerCash( playerid, 500000 );
|
||||
}
|
||||
case VIP_BRONZE:
|
||||
{
|
||||
GivePlayerCash( playerid, 2500000 );
|
||||
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 );
|
||||
}
|
||||
case VIP_GOLD:
|
||||
{
|
||||
GivePlayerCash( playerid, 5000000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Gold)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Gold)" # COL_WHITE );
|
||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House and Vehicle. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||
}
|
||||
case VIP_PLATINUM:
|
||||
{
|
||||
GivePlayerCash( playerid, 12500000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Platinum)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Platinum)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage" # COL_WHITE );
|
||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle and Garage. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||
}
|
||||
case VIP_DIAMOND:
|
||||
{
|
||||
GivePlayerCash( playerid, 25000000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Diamond)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Diamond)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage (Diamond)" # COL_WHITE );
|
||||
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 );
|
||||
case VIP_REGULAR:
|
||||
{
|
||||
GivePlayerCash( playerid, 500000 );
|
||||
}
|
||||
case VIP_BRONZE:
|
||||
{
|
||||
GivePlayerCash( playerid, 2500000 );
|
||||
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 );
|
||||
}
|
||||
case VIP_GOLD:
|
||||
{
|
||||
GivePlayerCash( playerid, 5000000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Gold)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Gold)" # COL_WHITE );
|
||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House and Vehicle. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||
}
|
||||
case VIP_PLATINUM:
|
||||
{
|
||||
GivePlayerCash( playerid, 12500000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Platinum)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Platinum)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage" # COL_WHITE );
|
||||
SendClientMessageToAdmins( -1, ""COL_PINK"[VIP NOTE]"COL_GREY" %s(%d) needs a House, Vehicle and Garage. (/viewnotes)", ReturnPlayerName( playerid ), playerid );
|
||||
}
|
||||
case VIP_DIAMOND:
|
||||
{
|
||||
GivePlayerCash( playerid, 25000000 );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P House (Diamond)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Vehicle (Diamond)" # COL_WHITE );
|
||||
AddPlayerNote( playerid, -1, COL_GOLD # "V.I.P Garage (Diamond)" # COL_WHITE );
|
||||
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