Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Include version of RomCookies by Romel
- #if defined _cookies_included
- #endinput
- #endif
- #define _cookies_included
- enum CookieInfo
- {
- Cookies,
- }
- new cokInfo[MAX_PLAYERS][CookieInfo];
- /*
- native cookie_PlayerInit(playerid);
- native SetPlayerCookie(playerid, cookie);
- native ResetPlayerCookie(playerid);
- native AddPlayerCookie(playerid, cookie);
- native DecreasePlayerCookie(playerid, cookie);
- native GetPlayerCookie(playerid);
- */
- stock cookie_PlayerInit(playerid)
- {
- cokInfo[playerid][Cookies] = 0;
- return 1;
- }
- stock SetPlayerCookie(playerid, cookie = 0)
- {
- cokInfo[playerid][Cookies] = 0;
- cokInfo[playerid][Cookies] = cookie;
- return 1;
- }
- stock ResetPlayerCookie(playerid)
- {
- cokInfo[playerid][Cookies] = 0;
- return 1;
- }
- stock AddPlayerCookie(playerid, cookie = 0)
- {
- cokInfo[playerid][Cookies] += cookie;
- return 1;
- }
- stock DecreasePlayerCookie(playerid, cookie = 0)
- {
- cokInfo[playerid][Cookies] -= cookie;
- return 1;
- }
- stock GetPlayerCookie(playerid) return cokInfo[playerid][Cookies];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement