Recon - Uncon problem
#1

i need little help ...
when i tried to recon players, and if they died then it continue reconing, I want that back my on position before i recon them.. recon = follow (i dont know right english word for this)

Код:
CMD:recon(playerid, params[])
{
	new id, string[128];
	if(PlayerInfo[playerid][pAdmin] < 2)return NisiAdmin(playerid);
 	if(sscanf(params, "u", id)) return Koristi(playerid, "/recon [playerid]");
  	else if(id == INVALID_PLAYER_ID) return PogresanID(playerid);
   	TogglePlayerSpectating(playerid, 1);
   	PlayerSpectatePlayer(playerid, id);
   	SetPlayerInterior(playerid, GetPlayerInterior(id));
   	format(string, sizeof(string), "Sada reconas %s, da ga prestanes reconat koristi: /uncon", PlayerName(id));
   	SendClientMessage(playerid, Grey, string);
    return 1;
}
Reply
#2

Spectate? Are you talking about Spectating a player?
Reply
#3

When a player recon, you should save the target inside a variable for this player.
Then we a player die, you check if there is anyone with his ID at the target variable (which means he is spectating him) and you toggle spectation for that player.
Be sure you also remove this variable when you use to stop recon command.
Reply
#4

yes, i mean on spectating players ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)