Fix Command
#1

Hello,
I have in my server this Script for Fix:

Код:
// ------ fix -----------------------------------------------------------------
dcmd_fix(playerid, params[]) {
	#pragma unused params
	if(IsPlayerInAnyVehicle(playerid)) {
		SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
		SendClientMessageLang(playerid, COLOR_ORANGE,"Vehicle fixed.","Voertuig Gerepareerd.");
	}
	else
	{
		SendClientMessageLang(playerid, COLOR_WARN,"You must be in vehicle!","Je moet in een voertuig zitten!");
	}
	return 1;
}
dcmd_repair(playerid, params[]) { dcmd_fix(playerid, params); return 1; }
But when i repair The health goes to 1000.
But the car will not repair
Screenshot:


Check that thing right on the bottom
and check the car...
i Dont know whats wrong..

Help Please?
Reply


Messages In This Thread
Fix Command - by Drowzz - 11.04.2010, 17:37
Re: Fix Command - by Hiddos - 11.04.2010, 17:39
Re: Fix Command - by Drowzz - 11.04.2010, 17:53
Re: Fix Command - by Jay420 - 11.04.2010, 17:57
Re: Fix Command - by Drowzz - 11.04.2010, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)