if(strcmp(cmd,"/usemaconha",true) == 0 || strcmp(cmd,"/usarmaconha",true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo usar drogas na cadeia!");
return true;
}
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDorgado] >= 160)
{
PlayerInfo[playerid][pDoenca] = 5;
PlayerInfo[playerid][pDorgado] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2300);
return true;
}
if(PlayerInfo[playerid][pDoenca] == 5)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
return true;
}
if(PlayerBoxing[playerid] > 0 || PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode usar Drogas enquanto vocк estб lutando !");
return true;
}
if(PlayerInfo[playerid][pDrogas] > 1)
{
if(PlayerStoned[playerid] >= 3) { GameTextForPlayer(playerid,"~w~Vocк esta~n~~p~Lezado",4000,1); }
new Float:PlayersArmour;
GetPlayerArmour(playerid,PlayersArmour);
PlayerInfo[playerid][pDrogas] -= 2;
PlayerInfo[playerid][pDorgado] += 2;
new Dmelhoria = 1 * PlayerInfo[playerid][pDrugPerk]; Dmelhoria += 2;
if(PlayersArmour >= 100)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTRED,"* Vocк nгo pode encher seu colete mais que 100.");
return true;
}
else
{
SetPlayerArmour(playerid, PlayersArmour + Dmelhoria);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Fumou Maconha.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem Gramas de Drogas Suficiente.!");
}
}//not connected
return true;
}
if(strcmp(cmd,"/usecocaina",true) == 0 || strcmp(cmd,"/usarcocaina",true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo usar drogas na cadeia!");
return true;
}
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDorgado] >= 120)
{
PlayerInfo[playerid][pDoenca] = 5;
PlayerInfo[playerid][pDorgado] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2300);
return true;
}
if(PlayerInfo[playerid][pDoenca] == 5)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
return true;
}
if(PlayerBoxing[playerid] > 0 || PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode usar drogas enquanto estб lutando !");
return true;
}
if(PlayerInfo[playerid][pDrogas2] > 1)
{
PlayerStoned[playerid] += 1;
if(PlayerStoned[playerid] >= 3) { GameTextForPlayer(playerid,"~w~Vocк estб~n~~p~Cherado",4000,1); }
new Float:PlayersArmour;
GetPlayerArmour(playerid,PlayersArmour);
PlayerInfo[playerid][pDrogas2] -= 2;
PlayerInfo[playerid][pDorgado] += 2;
new Dmelhoria = 1 * PlayerInfo[playerid][pDrugPerk]; Dmelhoria += 2;
if(PlayersArmour >= 100)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTRED,"* Vocк nгo pode mais usar drogas!");
return true;
}
else
{
SetPlayerArmour(playerid, PlayersArmour + Dmelhoria);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Cherou Cocaina.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem Gramas de Drogas Suficiente.!");
}
}//not connected
return true;
}
if(strcmp(cmd,"/usecrack",true) == 0 || strcmp(cmd,"/usarcrack",true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo usar drogas na cadeia!");
return true;
}
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDorgado] >= 80)
{
PlayerInfo[playerid][pDoenca] = 5;
PlayerInfo[playerid][pDorgado] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб com cвncer de pulmгo, vб ate um hospital se tratar !");
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2300);
return true;
}
if(PlayerInfo[playerid][pDoenca] == 5)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб com cвncer de pulmгo, vб ate um hospital se tratar !");
return true;
}
if(PlayerBoxing[playerid] > 0 || PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Use Drogas enquanto vocк estб lutando !");
return true;
}
if(PlayerInfo[playerid][pDrogas3] > 1)
{
new Float:PlayersArmour;
GetPlayerArmour(playerid,PlayersArmour);
PlayerInfo[playerid][pDrogas3] -= 2;
PlayerInfo[playerid][pDorgado] += 2;
new Dmelhoria = 1 * PlayerInfo[playerid][pDrugPerk]; Dmelhoria += 2;
if(PlayersArmour >= 100)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTRED,"* Vocк nгo pode mais usar drogas!");
return true;
}
else
{
SetPlayerArmour(playerid, PlayersArmour + Dmelhoria);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Fumou Crack.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem Gramas de Drogas Suficiente.!");
}
}//not connected
return true;
}
Vou ver aki,valeu amigo.
+rep @Edit: sу tem um problema eu nao uso zcmd. ![]() |
if(strcmp(cmd,"/usardrogas",true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo usar drogas na cadeia!");
return true;
}
if(PlayerInfo[playerid][pDoenca] == 5)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
return true;
}
if(PlayerBoxing[playerid] > 0 || PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode usar Drogas enquanto vocк estб lutando !");
return true;
}
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDorgado] >= 160)
{
PlayerInfo[playerid][pDoenca] = 5;
PlayerInfo[playerid][pDorgado] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta com cвncer de pulmгo, vб ate um hospital se tratar !");
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2300);
return true;
}
if(PlayerInfo[playerid][pDrogas] > 1 || PlayerInfo[playerid][pDrogas2] > 1 || PlayerInfo[playerid][pDrogas3] > 1)
{
PlayerStoned[playerid] += 1;
if(PlayerStoned[playerid] >= 3) { GameTextForPlayer(playerid,"~w~Vocк esta~n~~p~Fumando ~r~Drogas",4000,1); }
new Float:PlayersArmour;
GetPlayerArmour(playerid,PlayersArmour);
PlayerInfo[playerid][pDrogas] -= 2;
PlayerInfo[playerid][pDrogas2] -= 2;
PlayerInfo[playerid][pDrogas3] -= 2;
PlayerInfo[playerid][pDorgado] += 2;
new Dmelhoria = 1 * PlayerInfo[playerid][pDrugPerk]; Dmelhoria += 2;
if(PlayersArmour >= 100)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTRED,"* Vocк nгo pode encher seu colete mais que 100.");
return true;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Fumou Drogas.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem Gramas de Drogas Suficiente.!");
}
}//not connected
return true;
}