help - Simple checkpoint for repair
#5

Quote:
Originally Posted by GrandParadise
Посмотреть сообщение
Код:
if(strcmp(cmdtext, "/repair", true)==0)
{
  if(IsPlayerInCheckpoint(playerid))
  {
    if(IsPlayerInAnyVehicle(playerid))
    {
      RepairVehicle(GetPlayerVehicleID(playerid));
    }
    else
    {
      SendClientMessage(playerid, red, "Error: You need to be in a vehicle to repair it!");
    }
  }
  else
  {
    SendClientMessage(playerid, red, "Error: You are not in the checkpoint!");
  }
  return 1;
}
Wow thanks +rep, and how about if I will make a message that will show only when he enter the repair checkpoint?

Let say I landed on the checkpoint and a message will appear "Press Alt Key to Repair your vehicle" and which is better textdraw or gametextforplay?

EDIT: also the repair will take 5 seconds
Reply


Messages In This Thread
help - Simple checkpoint for repair - by gotwarzone - 07.03.2014, 16:28
Re: help - Simple checkpoint for repair - by Lajko1 - 07.03.2014, 19:49
Re: help - Simple checkpoint for repair - by gotwarzone - 08.03.2014, 06:12
Re: help - Simple checkpoint for repair - by GrandParadise - 08.03.2014, 06:21
Re: help - Simple checkpoint for repair - by gotwarzone - 08.03.2014, 06:32
Re: help - Simple checkpoint for repair - by GrandParadise - 08.03.2014, 06:35
Re: help - Simple checkpoint for repair - by gotwarzone - 08.03.2014, 06:44
Re: help - Simple checkpoint for repair - by ReD_HunTeR - 08.03.2014, 06:49
Re: help - Simple checkpoint for repair - by gotwarzone - 08.03.2014, 07:06
Re: help - Simple checkpoint for repair - by gotwarzone - 08.03.2014, 15:05

Forum Jump:


Users browsing this thread: 2 Guest(s)