Some fuctions
#1

Anyone knows if there exist this fuctions? IsPlayerInAnyCar(playerid),IsPlayerInAnyBike(playe rid),IsPlayerNearNPC(playerid,npcid)
Reply
#2

You could try this: https://sampforum.blast.hk/showthread.php?tid=56426

Unsure if the links still work.
Reply
#3

uh
pawn Код:
IsPlayerInAnyVehicle(playerid);

new Float:x,Float:y,Float:z;
GetPlayerPos(NPCNAMEHERE,x,y,z);
IsPlayerInRangeOfPoint(playerid,3,x,y,z);
I can get IsPlayerOnABike for you maybe
Reply
#4

Thanks Hiddos for include is that what i need and willsuckformoney for the code for the npc really nice.
Reply
#5

yeah i think Jeffry showed that to me like 2 months ago
Reply
#6

willsuckformoney if i put the code like this format i have this error

Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(NPCNAMEHERE,x,y,z);
IsPlayerInRangeOfPoint(playerid,3,x,y,z);
error 017: undefined symbol "NPCNAMEHERE"

and if i put like this

Код:
new Float:x,Float:y,Float:z;
GetPlayerPos("NPCNAMEHERE",x,y,z);
IsPlayerInRangeOfPoint(playerid,3,x,y,z);
i have this error

error 035: argument type mismatch (argument 1).
Reply
#7

You'll probably need the ID of the NPC and enter it instead of that string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)