OnEnterExitModShop
From SA-MP Wiki
(Difference between revisions)
Revision as of 13:57, 19 February 2013 Smithy (Talk | contribs) (ES link) ← Previous diff |
Revision as of 02:57, 1 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{0.3Added|callback|}} | {{0.3Added|callback|}} | ||
Line 29: | Line 28: | ||
[[de:OnEnterExitModShop]] | [[de:OnEnterExitModShop]] | ||
[[es:OnEnterExitModShop]] | [[es:OnEnterExitModShop]] | ||
+ | [[fr:OnEnterExitModShop]] | ||
[[ru:OnEnterExitModShop]] | [[ru:OnEnterExitModShop]] |
Revision as of 02:57, 1 February 2014
Description:
This callback is called when a player enters or exits a mod shop.
(playerid,enterexit,interiorid)
playerid | The ID of the player that entered or exited the modshop |
enterexit | 1 if the player entered or 0 if they exited |
interiorid | The interior ID of the modshop that the player is entering (or 0 if exiting) |
Return Values:
This callback does not handle returns.
public OnEnterExitModShop(playerid, enterexit, interiorid) { if(enterexit == 0) // If enterexit is 0, this means they are exiting { SendClientMessage(playerid, COLOR_WHITE, "Nice car! You have been taxed $100."); GivePlayerMoney(playerid, -100); } return 1; }