13.04.2012, 23:21
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:
And what I need to do, is integrate this in to my command:
Once again, the command is in a filterscript and the "PlayerInfo" is in the GameMode.
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.");
}
}
pawn Код:
if(PlayerInfo[playerid][pJob] == 1)