Help script to give players on a team a weapon every 3 minutes - 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: Help script to give players on a team a weapon every 3 minutes (
/showthread.php?tid=164516)
Help script to give players on a team a weapon every 3 minutes -
lSCARl - 31.07.2010
i need to know how i can give players on a team TEAM_HIDER 1 how to give them a certain weapon every 3 minutes and also every 3 minutes say Shoot Flares Now. and if possible when all rockets are shot timer is restarted and if a player doesnt shoot the flares in 1 minute after given they are killed
Re: Help script to give players on a team a weapon every 3 minutes -
iggy1 - 31.07.2010
In OnGameModeInit
pawn Код:
SetTimer("weptimer",180000,true);
Bottom of script
pawn Код:
forward weptimer(playerid);
public weptimer(playerid)
{
for(new i; i <= MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == TEAM_HIDER)
{
//giveweapon here
SendClientMessage(i,0xff0000FF,"Shoot Flares Now");
}
}
return 1;
}
Not sure how ud do the rocket thing tho.
Re: Help script to give players on a team a weapon every 3 minutes -
lSCARl - 31.07.2010
Quote:
Originally Posted by iggy1
In OnGameModeInit
pawn Код:
SetTimer("weptimer",180000,true);
Bottom of script
pawn Код:
forward weptimer(playerid); public weptimer(playerid) { for(new i; i <= MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == TEAM_HIDER) { //giveweapon here SendClientMessage(i,0xff0000FF,"Shoot Flares Now"); } } return 1; }
Not sure how ud do the rocket thing tho.
|
ok when i do this nothing happens so i set down the time and this script only works in player selection it says to shoot flares and gives the character in the selection thing rockets how can i fix that?
Re: Help script to give players on a team a weapon every 3 minutes -
iggy1 - 01.08.2010
Tested something else in your code is causing this problem.