How to create rounds?
#8

pawn Код:
new bool:Joinedhunger[MAX_PLAYERS];//in the top of your script
CMD:hunger(playerid,params[])
{
    Joinedhunger[playerid] = true;
    SetTimer("Rounds",10000,true);
    return 1;
}
CMD:leavehunger(playerid,params[])
{
    Joinedhunger[playerid] = false;
    Spawn(playerid);
    return 1;
}
new Float:RandomSpawn[][4] =
{
    //change this postions to your floats you want to set for tha player.
    {-2796.9854, 1224.8180, 20.5429, 192.0335},
    {-2454.2170, 503.8759, 30.0790, 267.2932},
    {-2669.7322, -6.0874, 6.1328, 89.8853}
};
forward Rounds();
forward Rounds();
{
    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
}
I've set the postions change every 10 seconds (10,000 milliseconds) you can change that , i hope i understand what you looking for.
Reply


Messages In This Thread
How to create rounds? - by cleme - 02.12.2013, 11:51
Re: How to create rounds? - by xFallen - 02.12.2013, 12:47
Re: How to create rounds? - by Voxel - 02.12.2013, 12:53
Re: How to create rounds? - by cleme - 02.12.2013, 13:57
Re: How to create rounds? - by ReApZ - 02.12.2013, 14:00
Re: How to create rounds? - by cleme - 02.12.2013, 14:01
Re: How to create rounds? - by cleme - 02.12.2013, 14:05
Re: How to create rounds? - by SilentSoul - 02.12.2013, 14:07
Re: How to create rounds? - by cleme - 02.12.2013, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)