Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/usar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new droga[256];
- droga = strtok(cmdtext, idx);
- if(!strlen(droga))
- {
- SendClientMessage(playerid,0xFFFF00AA,"USE: /usar [droga] [quantidade]");
- SendClientMessage(playerid,0xFFFF00AA,"Drogas: maconha,crack,cocaina,lancaperfume");
- return 1;
- }
- if(strcmp(droga,"maconha",true) == 0)
- {
- if(FusioN_Info[playerid][pMaconha] >= 0)
- {
- new quant;
- quant = strval(tmp);
- Noiado[playerid] += 1;
- if(Noiado[playerid] >= 3)
- {
- GameTextForPlayer(playerid, "~r~No~g~ia~y~do~n~", 4000, 1);
- }
- if(FusioN_Info[playerid][pMaconha] >= quant)
- {
- FusioN_Info[playerid][pMaconha] -= quant;
- AdicionarColete(playerid,quant);
- format(string,sizeof(string),"%s pegou o baseado e fumou.",pNome(playerid));
- ChatProx(30.0, playerid, string,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid,branco,"Você não possui nenhuma grama de maconha.");
- return 1;
- }
- }
- else if(strcmp(droga,"crack",true) == 0)
- {
- if(FusioN_Info[playerid][pCrack] >= 0)
- {
- new quant;
- quant = strval(tmp);
- Noiado[playerid] += 1;
- if(Noiado[playerid] >= 3)
- {
- GameTextForPlayer(playerid, "~r~No~g~ia~y~do~n~", 4000, 1);
- }
- if(FusioN_Info[playerid][pCrack] >= quant)
- {
- FusioN_Info[playerid][pCrack] -= quant;
- AdicionarColete(playerid,quant);
- format(string,sizeof(string),"%s pegou seu cachimbo de crack e fumou.",pNome(playerid));
- ChatProx(30.0, playerid, string,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid,branco,"Você não possui nenhuma pedra de crack.");
- return 1;
- }
- }
- else if(strcmp(droga,"cocaina",true) == 0)
- {
- if(FusioN_Info[playerid][pCocaina] >= 0)
- {
- new quant;
- quant = strval(tmp);
- Noiado[playerid] += 1;
- if(Noiado[playerid] >= 3)
- {
- GameTextForPlayer(playerid, "~r~No~g~ia~y~do~n~", 4000, 1);
- }
- if(FusioN_Info[playerid][pCocaina] >= quant)
- {
- FusioN_Info[playerid][pCocaina] -= quant;
- AdicionarColete(playerid,quant);
- format(string,sizeof(string),"%s pegou um saco de farinha e o cherou.",pNome(playerid));
- ChatProx(30.0, playerid, string,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid,branco,"Você não possui nenhuma grama de cocaína.");
- return 1;
- }
- }
- else if(strcmp(droga,"lancaperfume",true) == 0)
- {
- if(FusioN_Info[playerid][pLanca] >= 0)
- {
- new quant;
- quant = strval(tmp);
- Noiado[playerid] += 1;
- if(Noiado[playerid] >= 3)
- {
- GameTextForPlayer(playerid, "~r~No~g~ia~y~do~n~", 4000, 1);
- }
- if(FusioN_Info[playerid][pLanca] >= quant)
- {
- new Float:vida;
- GetPlayerHealth(playerid, vida);
- FusioN_Info[playerid][pLanca] -= quant;
- SetPlayerHealth(playerid,vida+quant);
- GivePlayerWeapon(playerid,31,quant);
- format(string,sizeof(string),"%s pegou o vidro de Lança Perfume e cherou.",pNome(playerid));
- ChatProx(30.0, playerid, string,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid,branco,"Você não possui nenhum mililitro de lança perfume.");
- return 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement