0 Members and 1 Guest are viewing this topic.
varbots : array[1..6] of byte;beginbots[1] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')+21,GetPlayerStat(ID,'Y'));bots[2] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')+10,GetPlayerStat(ID,'Y')+18);bots[3] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')-10,GetPlayerStat(ID,'Y')+18);bots[4] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')+10,GetPlayerStat(ID,'Y')-18);bots[5] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')-10,GetPlayerStat(ID,'Y')-18);bots[6] := PlaceBot('Poncho',GetPlayerStat(ID,'Team'),GetPlayerStat(ID,'X')-21,GetPlayerStat(ID,'Y'));end;
:Ei'd like to take a look at this but..."Not FoundThe requested document was not found."if some1 has that code plz send it somewhere :>
[offtopic]I've noticed that many (if not all) Avarax's "Ready Made" scripts have been removed from notepaste :SWell, luckily at least few guys here, at soldatforums, has them all. Point of this stupid post was nothing, and my intention wasn't to insult anyone. If you however feel insulted, please, tell it to hand. Hand will listen you [/offtopic]
function PlaceBot(botname: string; team: byte; X,Y: single): byte;var i,n,tempType: byte; spawn: array of byte; tempX,tempY: single;begin SetArrayLength(spawn,0); n:=0; for i:=1 to 254 do If GetSpawnStat(i,'Active') = true then If GetSpawnStat(i,'Style') = team then begin n:=n + 1; SetArrayLength(spawn,n); spawn[n-1]:=i; SetSpawnStat(i,'Active',false); end; for i:=1 to 254 do If GetSpawnStat(i,'Active') = false then begin SetSpawnStat(i,'Active',true); tempType:=GetSpawnStat(i,'Style'); tempX:=GetSpawnStat(i,'X'); tempY:=GetSpawnStat(i,'Y'); SetSpawnStat(i,'Style',team); SetSpawnStat(i,'X',X); SetSpawnStat(i,'Y',Y); break; end; result:=Command('/addbot' + inttostr(team) + ' ' + botname); SetSpawnStat(i,'Active',false); SetSpawnStat(i,'Style',tempType); SetSpawnStat(i,'X',tempX); SetSpawnStat(i,'Y',tempY); If n > 0 then for i:=0 to n-1 do SetSpawnStat(spawn[i],'Active',true);end;