Pickup = Reset game? - 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: Pickup = Reset game? (
/showthread.php?tid=91380)
Pickup = Reset game? -
_Vortex - 14.08.2009
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
Re: Pickup = Reset game? -
Correlli - 14.08.2009
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
Re: Pickup = Reset game? -
_Vortex - 14.08.2009
I've alreaddy searched
And those links don't help at all, I need it to be for just one team.
Re: Pickup = Reset game? -
Correlli - 14.08.2009
Quote:
|
Originally Posted by [B
Vortex ]
And those links don't help at all
|
They do, if you know how to read on wiki.
Re: Pickup = Reset game? -
_Vortex - 14.08.2009
I read all the pages you sent me, rofl.
Re: Pickup = Reset game? -
RaFsTar - 14.08.2009
Here you have:
Код:
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
Re: Pickup = Reset game? -
_Vortex - 14.08.2009
thanks dude!