08.02.2016, 22:00
Quote:
Код:
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; } else if(strcmp("crack", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; } return 1; } |