Need help with /repair command.
#1

I made a /repair command in a filterscript and I need help integrating PlayerInfo from my GameMode to the filterscript. You'll get the point when you see the codes.

So here's the command:
pawn Код:
CMD:repair(playerid, params[])
    {
        new vehicleid;
        vehicleid = GetClosestVehicle(playerid);
        if(PlayerToVehicle(playerid, vehicleid, 3.0))
        {
        SetVehicleHealth(vehicleid, 1000.0);
        SendClientMessage(playerid, COLOR_WHITE, "You have fully repaired the engine.");
        SendClientMessage(playerid, COLOR_WHITE, "{CC3333}NOTICE:{ffffff} You haven't received any payment for your work. Ask the other player to pay you.");
}
}
And what I need to do, is integrate this in to my command:
pawn Код:
if(PlayerInfo[playerid][pJob] == 1)
Once again, the command is in a filterscript and the "PlayerInfo" is in the GameMode.
Reply


Messages In This Thread
Need help with /repair command. - by Gytis0 - 13.04.2012, 23:21
Re: Need help with /repair command. - by ReneG - 13.04.2012, 23:28
Re: Need help with /repair command. - by Gytis0 - 13.04.2012, 23:39
Re: Need help with /repair command. - by ReneG - 13.04.2012, 23:43
Re: Need help with /repair command. - by Gytis0 - 13.04.2012, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)