/getgun & /armour & /goto command
#4

haha that guy gave me the idea to get armour from the police vans :P here's wut i did:

Код:
  if(strcmp(cmd, "/getarmour", true) == 0)  {
  if(!IsPlayerInAnyVehicle(playerid))  {
  SendClientMessage(playerid, COLOR_ERROR , "This command only works while inside a Police Van.");
  return 1;
  }
  new vehicleid = GetPlayerVehicleID(playerid);
  if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(vehicleid) != 427 )   {
  SendClientMessage(playerid,COLOR_ERROR,"You can only get armour if you're inside a Police van");
  return 1;
  }
  if(GetVehicleModel(vehicleid) == 427 && IsPlayerInAnyVehicle(playerid)) { //swatvan
  new Float:armor;
  GetPlayerArmour(playerid, armor);
  SetPlayerArmour(playerid, 100-armor); // Take out the -armor to make it so they get +100 each time they do it.
  SendClientMessage(playerid, COLOR_DEADCONNECT , "|_S.A. Police Van_|");
  SendClientMessage(playerid, COLOR_ROYALBLUE , "You grabbed some armor!");
  return 1;
  }

  return 1;
  }
but i was really looking for a /bring or /goto that would move a vehicle because i tried but failed :/ :S i'll have to mess with it some more

and

cheers to the best mod on the net! *clink*

*chugs*
Reply


Messages In This Thread
/getgun & /armour & /goto command - by WanabePC - 15.03.2009, 20:27
Re: /getgun & /armour & /goto command - by Weirdosport - 15.03.2009, 20:35
Re: /getgun & /armour & /goto command - by Kinetic - 15.03.2009, 21:15
Re: /getgun & /armour & /goto command - by dpstdd - 22.04.2009, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)