From 9f135df7ba74d1078b60fbc65d11d60ba5fdf7e6 Mon Sep 17 00:00:00 2001 From: Dusan Date: Tue, 4 Jun 2019 19:13:28 +0200 Subject: [PATCH] Added XP for meth --- gamemodes/irresistible/cnr/features/minijobs/meth.pwn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/minijobs/meth.pwn b/gamemodes/irresistible/cnr/features/minijobs/meth.pwn index a8360f9..a0f0d34 100644 --- a/gamemodes/irresistible/cnr/features/minijobs/meth.pwn +++ b/gamemodes/irresistible/cnr/features/minijobs/meth.pwn @@ -304,6 +304,7 @@ public OnMethamphetamineCooking( playerid, vehicleid, last_chemical ) ShowPlayerHelpDialog( playerid, 5000, "The process is done. Bag it up and do another round if you wish." ); SendServerMessage( playerid, "Process is done. Bag it up, and do another round if you wish. Export it for money." ); GivePlayerWantedLevel( playerid, 12 ); + GivePlayerExperience( playerid, E_ROLEPLAY ); GivePlayerScore( playerid, 3 ); ach_HandleMethYielded( playerid ); SetGVarInt( "meth_yield", CreateDynamicObject( 1579, 2083.684082, 1233.945922, 414.875244, 0.000000, 0.000000, 90.000000, GetPlayerVirtualWorld( playerid ) ), vehicleid ); @@ -415,6 +416,7 @@ CMD:meth( playerid, params[ ] ) cashEarned = p_Methamphetamine{ playerid } * ( 5000 + random( 1000 ) ); GivePlayerCash( playerid, cashEarned ); + GivePlayerExperience( playerid, E_ROLEPLAY, float( p_Methamphetamine{ playerid } ) * 0.2 ); StockMarket_UpdateEarnings( E_STOCK_CLUCKIN_BELL, cashEarned, .factor = 0.3 ); SendServerMessage( playerid, "You have exported %d bags of meth, earning you "COL_GOLD"%s"COL_WHITE".", p_Methamphetamine{ playerid }, cash_format( cashEarned ) ); p_Methamphetamine{ playerid } = 0; @@ -544,7 +546,7 @@ stock RemovePlayersFromJourney( vehicleID ) SetPlayerPos( playerid, x, y, z ); SetPlayerInterior( playerid, 0 ); SetPlayerVirtualWorld( playerid, 0 ); - + SendServerMessage( playerid, "You have been removed from a player-owned Journey as the player who owned it has left the server." ); } }