22.10.2009, 19:26
hi i was wondering if anyone could send me a script/code that makes the whole of the vehicle repair including the body of the vehicle. please help 
thanks

thanks


if(strcmp(cmdtext, "/fullrepair", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:X, Float:Y, Float:Z, Float:Angle;
GetVehiclePos(vehicleid, X, Y, Z);
GetVehicleZAngle(vehicleid, Angle);
SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
SetCameraBehindPlayer(playerid);
SetVehicleZAngle(vehicleid, 185.7243);
GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
}
else return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle.");
return 1;
}
|
Originally Posted by Sampiscool123
nevermind i found it! sorry for posting a topic without reading wiki
|
|
Originally Posted by Sampiscool123
nevermind i found it! sorry for posting a topic without reading wiki
|
|
Originally Posted by D0n_With_Mafia_Skills
Sometime i also will come for help hehe, okay dont mind if you got errors because im new Scripter
![]() if you want this cmd , it will teleport to Pay N spary , after that They will give you New Body and colour Enjoy my First Fs hehehehehe Code:
if(strcmp(cmdtext, "/fullrepair", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:X, Float:Y, Float:Z, Float:Angle;
GetVehiclePos(vehicleid, X, Y, Z);
GetVehicleZAngle(vehicleid, Angle);
SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
SetCameraBehindPlayer(playerid);
SetVehicleZAngle(vehicleid, 185.7243);
GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
}
else return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle.");
return 1;
}
|