• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Does the fire truck's water launcher haves sync with the server?
#7
(2021-03-01, 03:24 PM)destiezk Wrote: Actually, I have an idea for you. (Although, I'm not sure if it will work). There is no need to do anything in OnPlayerWeaponShot.



Code:
new gFireTruckID = 407;



#define HOLDING(%0) \

((newkeys & (%0)) == (%0))



public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

? ? if (IsPlayerInVehicle(playerid, gFireTruckID))

? ? {

? ? ? ? if (HOLDING(KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)

? ? ? ? {

? ? ? ? ? SendClientMessage(playerid, -1, "You are currently spreading water from a Firetruck.");

? ? ? ? }

? ? }



? ? return 1;

}



I've used this script, but it's inaccurate because I can't know where the player is pointing.
Code:
Discord: Marllun#6297
  Reply


Messages In This Thread
RE: Does the fire truck's water launcher haves sync with the server? - by Marllun - 2021-03-01, 03:35 PM

Forum Jump: