SA-MP Forums Archive
Some Requests - 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: Some Requests (/showthread.php?tid=158313)



Some Requests - James124 - 09.07.2010

hi guys ! I have a server and im not going on depth into it ! i just wanted some scripts for my server ! i would be very gratefull if i get it ! Mine is a dm server

I want a

1) anti Teamkill
2) Spawn protection for 10 second

it would be good if it was a filterscript !


These are the things that i want ! i think its very easy to make and i tried and i failed ! Thx for reading this !


Re: Some Requests - Hiddos - 09.07.2010

Didn't SetPlayerTeam already had anti-tk?

for spawn protection:

pawn Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerHealth(playerid,10000000);
  SetTimerEx("OnSpawnProtEnd",10000,0,"d",playerid);
  return 1;
}

forward OnSpawnProtEnd(playerid);
public OnSpawnProtEnd(playerid)
{
  SetPlayerHealth(playerid,100);
  return 1;
}



Re: Some Requests - James124 - 10.07.2010

hmm i dont know how to set up anti team kill ! Please post for that also !


Re: Some Requests - James124 - 11.07.2010

please can someone teall how to prevent teamkilling by setplayerteam ?


Re: Some Requests - Grim_ - 11.07.2010

pawn Код:
SetPlayerTeam(playerid, teamid); // Under OnPlayerSpawn

// Then in a timer every X seconds (about 5)
SetPlayerTeam(playerid, teamid);
SA:MP is still bugged where it un-sets the player team sometimes.


Re: Some Requests - James124 - 11.07.2010

// Then in a timer every X seconds (about 5)
SetPlayerTeam(playerid, teamid);


ok but where to put the second one with timer ?