-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global file to use in gamemode (#1) + improvements
- Add GetPlayerScoreEx, SetPlayerScoreEx - Change some stocks to publics
- Loading branch information
1 parent
88706f2
commit 766f3d4
Showing
5 changed files
with
81 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* This include is only to use in a gamemode next to the MV_cPanel script. | ||
* Warning: about score and money, do not use the default samp functions | ||
* for score use: GivePlayerScore, SetPlayerScoreEx and GetPlayerScoreEx | ||
* same with money: only use GivePlayerCash and SetPlayerCash (and GetPlayerCash) | ||
*/ | ||
|
||
stock SendClientMessageToAdmins(color, message[]) | ||
{ | ||
CallRemoteFunction("SendClientMessageToAdmins", "is", color, message); | ||
} | ||
|
||
stock IsPlayerVIP(playerid) | ||
{ | ||
return CallRemoteFunction("IsPlayerVIP", "i", playerid); | ||
} | ||
|
||
stock IsPlayerAdminEx(playerid, level) | ||
{ | ||
return CallRemoteFunction("IsPlayerAdminEx", "ii", playerid, level); | ||
} | ||
|
||
stock IsPlayerMuted(playerid) | ||
{ | ||
return CallRemoteFunction("IsPlayerMuted", "i", playerid); | ||
} | ||
|
||
stock GivePlayerScore(playerid, score) | ||
{ | ||
CallRemoteFunction("GivePlayerScore", "ii",playerid, score ); | ||
} | ||
|
||
stock SetPlayerScoreEx(playerid, score) | ||
{ | ||
CallRemoteFunction("SetPlayerScoreEx", "ii",playerid, score ); | ||
} | ||
|
||
stock GivePlayerCash(playerid, money) | ||
{ | ||
CallRemoteFunction("GivePlayerCash", "ii", playerid, money); | ||
} | ||
|
||
stock SetPlayerCash(playerid, money) | ||
{ | ||
CallRemoteFunction("SetPlayerCash", "ii",playerid, money ); | ||
} | ||
|
||
stock GetPlayerCash(playerid) | ||
{ | ||
return CallRemoteFunction("GetPlayerCash", "i",playerid); | ||
} | ||
|
||
stock GetPlayerScoreEx(playerid) | ||
{ | ||
return CallRemoteFunction("GetPlayerScoreEx", "i", playerid); | ||
} |