Need help with simple command
#7

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(pOffersMechanic[playerid])
    {
        if(strcmp(text, "yes", true))
        {
            PlayerInfo[playerid][pVeh1tyres1] = 0;
            PlayerInfo[playerid][pVeh1doors1] = 0;
            PlayerInfo[playerid][pVeh1panels1] = 0;
            PlayerInfo[playerid][pVeh1lights1] = 0;
            GivePlayerCash(playerid, -amount);
            GameTextForPlayer(playerid, "Your car's body work has been fixed", 3000, 3);
            return 1;
        }
        if(strcmp(text, "no", true))
        {
            GameTextForPlayer(playerid, "Canceled heal offer", 3000, 3);
            return 1;
        }
    }
    return 1;
}
Its OnPlayerText..
Reply


Messages In This Thread
Need help with simple command - by MatZZPL - 13.11.2012, 18:57
Re : Need help with simple command - by yusei - 13.11.2012, 19:05
Re: Need help with simple command - by MatZZPL - 13.11.2012, 19:09
Re: Need help with simple command - by MatZZPL - 13.11.2012, 19:52
Re : Need help with simple command - by yusei - 13.11.2012, 19:53
Re: Need help with simple command - by MatZZPL - 13.11.2012, 20:07
Re: Need help with simple command - by tyler12 - 13.11.2012, 20:11
Re: Need help with simple command - by MatZZPL - 13.11.2012, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)