Some Requests
#1

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

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;
}
Reply
#3

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

please can someone teall how to prevent teamkilling by setplayerteam ?
Reply
#5

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.
Reply
#6

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


ok but where to put the second one with timer ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)