20.03.2014, 07:42
Код:
//Cube Gambling System by HelpYou. #include <a_samp> #include <zcmd> enum PlayerStats { pCubeGambling, pMask } PlayerInfo[MAX_PLAYERS][PlayerStats]; //Credits public OnFilterScriptInit() { print("\n--------------------------------------"); print("Cube Gambling system by HelpYou"); print("----------------------------------------\n"); return 1; } //CMD lines CMD:CubeGambling(playerid, params[]) { new string[128]; new CubeGambling = random(6)+1; if(PlayerInfo[playerid][pCubeGambling]) { if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger rolls a Cube Gambling that lands on %d.", CubeGambling); } else { format(string, sizeof(string), "%s rolls a Cube Gambling that lands on %d.", GetPlayerNameEx(playerid),CubeGambling); } ProxDetector(5.0, playerid, string, COLOR_NG); } else SendClientMessage(playerid, COLOR_GRAD2, "You don't have a Cube Gambling, Please buy from the 24/7 Store."); return 1; }