05.10.2010, 21:37
if u want a following map icon you have to make a timer and callback for it as mapicons don't have a dynamic placement function (attachTO).
Then u need to make something like this:
NOTE: Labels can only be used in local functions, global jumping is NOT POSSIBLE!
Then u need to make something like this:
pawn Код:
new MyVar,mp = GetMaxPlayers();
start:
MyVar = random(mp);
if(IsPlayerConnected(MyVar))goto end;
goto start;
end:
//code here and use MyVar