please please please help
#1

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
Reply
#2

Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)