• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Does the fire truck's water launcher haves sync with the server?
#8
(2021-03-01, 03:35 PM)Marllun Wrote:
(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.



I'm not sure why it is inaccurate? It writes if you're spreading water, getting the position where the water is falling is not possible I think, but correct me somebody
  Reply


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

Forum Jump: