Help script to give players on a team a weapon every 3 minutes
#1

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

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

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?
Reply
#4

Tested something else in your code is causing this problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)