The command!
#3

Here are the funcations, you just do the rest in your code.

Код:
function IsNearPlayer(playerid, targetid) {
	new Float: Coordss[3];
	GetPlayerPos(playerid, Coordss[0], Coordss[1], Coordss[2]);
    if(IsPlayerInRangeOfPoint(targetid, 20.0, Coordss[0], Coordss[1], Coordss[2]) && (GetPlayerVirtualWorld(targetid) == GetPlayerVirtualWorld(playerid))) return 1;
	return 0;
}

function IsNearPlayer2(Float:range, playerid, targetid) {
	new Float: Coordss[3];
    GetPlayerPos(playerid, Coordss[0], Coordss[1], Coordss[2]);
    if(IsPlayerInRangeOfPoint(playerid, range, Coordss[0], Coordss[1], Coordss[2]) && (GetPlayerVirtualWorld(targetid) == GetPlayerVirtualWorld(playerid))) return 1;
	return 0;
}
Reply


Messages In This Thread
The command! - by RedRex - 28.04.2018, 18:32
Re: The command! - by Dutheil - 28.04.2018, 18:54
Re: The command! - by Hunud - 28.04.2018, 18:55
Re: The command! - by RedRex - 28.04.2018, 18:55
Re: The command! - by RedRex - 28.04.2018, 20:00
Re: The command! - by Sew_Sumi - 28.04.2018, 21:05
Re: The command! - by RedRex - 29.04.2018, 09:17
Re: The command! - by Sew_Sumi - 29.04.2018, 11:30
Re: The command! - by RedRex - 29.04.2018, 12:02
Re: The command! - by Sew_Sumi - 29.04.2018, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)