Repair car
#3

Quote:
Originally Posted by JaTochNietDan
pawn Код:
if(strcmp(cmdtext,"/fix",true) == 0)
{
  if(GetPlayerState != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,red,"You need to be driving a vehicle!");
  SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
  SendClientMessage(playerid,COLOR_YELLOW,"Vehicle fixed");
  return 1;
}
There's a simple example for you
I started yesterday to script and I'm not the best on script.
here you got the repair script that I tried to get working.

pawn Код:
if (strcmp("/fix",cmdtext,true)==0){
IsPlayerInAnyVehicle(playerid);
SetVehicleHealth(vehicleid,1000.0);
SendClientMessage(playerid,TEAM_slytherin_COLOR,"Car is repaired.");
return 1;
  }
Reply


Messages In This Thread
Repair car - by Goobiiify - 18.08.2009, 13:51
Re: Repair car - by JaTochNietDan - 18.08.2009, 13:54
Re: Repair car - by Goobiiify - 18.08.2009, 13:59
Re: Repair car - by Weirdosport - 18.08.2009, 14:01
Re: Repair car - by Goobiiify - 18.08.2009, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)