Pickup = Reset game?
#1

Hello, I am trying to make a new server, and when one team picks up a pick up, it restarts the gamemode in like 10 seconds or so (enough time to say that that team won)

BUT! I only want that to happen for that one team (using gTeams).

How would I do this?

Thanks xD
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/GameModeExit
http://forum.sa-mp.com/index.php?action=search
Reply
#3

I've alreaddy searched

And those links don't help at all, I need it to be for just one team.
Reply
#4

Quote:
Originally Posted by [B
Vortex ]
And those links don't help at all
They do, if you know how to read on wiki.
Reply
#5

I read all the pages you sent me, rofl.
Reply
#6

Here you have:
Код:
new rr;
Код:
public OnGameModeInit()
{
rr=CreatePickup(PICKUPID,TYPE,LOCX,LOCY,LOCZ);
}
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==rr)
	{
     if(gTeam[playerid]== ???) // Put your team name here or number !
       {
        SendRconCommand("gmx");
       }
     }
}
Cheers
Reply
#7

thanks dude!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)