SA-MP Forums Archive
/Find Player Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /Find Player Command (/showthread.php?tid=338677)



/Find Player Command - rashier - 30.04.2012

Hi,i need a command : /Findplayer for everyone
When typed command, set the point on the map. But the point to move with player position.
And /cancelfindplayer
When typed command, unset point of player on the map.
And the player leave the server...Message to player,,That player leave the server,,

Thanks and sorry for my bad english...


Re: /Find Player Command - otiy - 01.05.2012

I want this command


Re: /Find Player Command - otiy - 05.05.2012

Help me please


Re : /Find Player Command - romas3110 - 05.05.2012

well this is untested i use ZCMD hope i helped Good Luck

Код:
new Finding[MAX_PLAYERS];
Код:
CMD:findplayer(playerid,params[])
{
	new id,str[128];
	if(sscanf(params, "u", id)) return SendClientMessage(playerid, grey, "USAGE: /find [playerid]");
	if(Finding[id] == 0) return SendClientMessage(playerid,red,"You Are not finding that player");
    if(Finding[id] == 1) return SendClientMessage(playerid,red,"Player Already being found");
	if(playerid == ID) return SendClientMessage(playerid,red,"You Cannot Find your self.");
	GetPlayerName(id,pname,sizeof(pname));
	format(str,sizeof(str),"You are now finding %s - they are marked on your map!",ID);
    SendClientMessage(playerid, grey,str);
	SetPlayerMarkerForPlayer(playerid,id,0xFF0000FF);
    Finding[id] = 1;
	return 1;
}
CMD:canclefindplayer(playerid,params[])
{
	new id,str[128];
	if(sscanf(params, "u", id)) return SendClientMessage(playerid, grey, "USAGE: /canclefindplayer [playerid]");
	if(Finding[id] == 0) return SendClientMessage(playerid,red,"Player Not being found");
	GetPlayerName(id,pname,sizeof(pname));
	format(str,sizeof(str),"You have stopped finding %s - they have been removed from your map!",ID);
	SendClientMessage(playerid, grey,str);
	SetPlayerMarkerForPlayer(playerid,id,0xFFFFFF00);
	Finding[id] = 0;
	}
	return 1;
}



Re: Re : /Find Player Command - warcodes_ - 05.05.2012

Quote:
Originally Posted by romas3110
Посмотреть сообщение
well this is untested i use ZCMD hope i helped Good Luck

Код:
new Finding[MAX_PLAYERS];
Код:
CMD:findplayer(playerid,params[])
{
	new id,str[128];
	if(sscanf(params, "u", id)) return SendClientMessage(playerid, grey, "USAGE: /find [playerid]");
	if(Finding[id] == 0) return SendClientMessage(playerid,red,"You Are not finding that player");
    if(Finding[id] == 1) return SendClientMessage(playerid,red,"Player Already being found");
	if(playerid == ID) return SendClientMessage(playerid,red,"You Cannot Find your self.");
	GetPlayerName(id,pname,sizeof(pname));
	format(str,sizeof(str),"You are now finding %s - they are marked on your map!",ID);
    SendClientMessage(playerid, grey,str);
	SetPlayerMarkerForPlayer(playerid,id,0xFF0000FF);
    Finding[id] = 1;
	return 1;
}
CMD:canclefindplayer(playerid,params[])
{
	new id,str[128];
	if(sscanf(params, "u", id)) return SendClientMessage(playerid, grey, "USAGE: /canclefindplayer [playerid]");
	if(Finding[id] == 0) return SendClientMessage(playerid,red,"Player Not being found");
	GetPlayerName(id,pname,sizeof(pname));
	format(str,sizeof(str),"You have stopped finding %s - they have been removed from your map!",ID);
	SendClientMessage(playerid, grey,str);
	SetPlayerMarkerForPlayer(playerid,id,0xFFFFFF00);
	Finding[id] = 0;
	}
	return 1;
}
He wants the marker the move with the players position(aka update).


Re: /Find Player Command - otiy - 21.05.2012

Help please