Jump to content
  • 0

Bug usepills


ProAeXel

Question

Am o problema cu scrptul de pills,nu ma lasa sa folosesc pills ,imi tot pune sa astept 300 de secunde .

Mai jos aveti scriptul comenzii,am incercat sa o rezolv ,dar fara succes,nu imi dau seama ce poate avea.

if(strcmp(cmdtext, "/usepills", true) == 0)
{
   if(IsPlayerConnected(playerid))
  {
     if(PlayerBoxing[playerid] > 0)
       {
           SendClientMessage(playerid, COLOR_WHITE, "Cant use Pills while you are fighting");
           return 1;
       }
if(PlayerInfo[playerid][pPills] > 0)
{
if(PlayerInfo[playerid][pPastile] == 0)
    {
   GetPlayerName(playerid, sendername, sizeof(sendername));
        SetPlayerHealth(playerid, 100);
   SendClientMessage(playerid, COLOR_WHITE, "1 Pill used");
   format(string, sizeof(string), "%s took a pills a very good", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   PlayerInfo[playerid][pPills] -= 1;
   PlayerInfo[playerid][pPastile] = 300;
   ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
   if(STDPlayer[playerid]==1)
{
    STDPlayer[playerid] = 0;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are no longer infected with a STD anymore because of the Drugs");
}
else if(STDPlayer[playerid]==2)
{
    STDPlayer[playerid] = 1;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You lowered the STD to Chlamydia because of the Drugs");
}
else if(STDPlayer[playerid]==3)
{
    STDPlayer[playerid] = 2;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You lowered the STD to Gonorrhea because of the Drugs");
}
} else SendClientMessage(playerid, COLOR_WHITE, "Please wait 300 seconds to consume pills again");
    }
else
{
   SendClientMessage(playerid, COLOR_WHITE, "You dont have any Pills left");
}
} // Not Connected
return 1;
}
 
 
PS: Nu am erori la compilare
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.