03.01.2018, 18:16
Quote:
This is code:
Code:
new RequestDiceBetting[MAX_PLAYERS]; // on top of your script. CMD:dicep(playerid, params[]) { new targetid, str[180], str2[180], bet; if(sscanf(params, "ui", targetid, bet)) return SCM(playerid, -1, "/dicep [playerid] [money]"); if(targetid == INVALID_PLAYER_ID) return SCM(playerid, -1, "Player Isnt Connected."); new mymoney = (GetPlayerMoney(playerid)); new targetmoney = (GetPlayerMoney(targetid)); if(bet>mymoney) return SCM(playerid, -1, "You Dont Have That Amount Of Money."); ..... ......... } |