SA-MP Forums Archive
please please please help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: please please please help (/showthread.php?tid=157218)



please please please help - bartje01 - 05.07.2010

at onplayercommandtext i have this
if(strcmp(cmd, "/backup", true) == 0 || strcmp(cmd, "/bk", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{


if(sapd[i] >=1)
{

SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);
format(string, sizeof(string), "* Officer %s needs backup - he's marked red on the radar.", PlayerName[playerid]);
SendClientMessage(i,COLOR_RED,string);
}
}

return 1;
}



at ongamemodeinit this:
ShowPlayerMarkers(0);


Now I want that you just see NO player markers when you start. That works fine.

But when you type the /backup command I want that you see one red marker at the players position. How to do this?

the /backup commands doesn't shows the marker


Re: please please please help - DJDhan - 05.07.2010

Код:
if(strcmp(cmd, "/backup", true) == 0 || strcmp(cmd, "/bk", true) == 0)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(sapd[i] >=1)
		{
			SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
			format(string, sizeof(string), "* Officer %s needs backup - he's marked red on the radar.", PlayerName[playerid]);
			SendClientMessage(i,COLOR_RED,string);
		}
	}
	return 1;
}