1 Error very simple help me.
#4

Use this, it will help you like I did, I also have a minigun DM:

https://sampwiki.blast.hk/wiki/Random
But, you will need to make variables to determine whether the player is in MG, my variable for it is :

pawn Код:
new PlayerInMG[MAX_PLAYERS];
So, put PlayerInMG[playerid] == 1; under your mg command, then under OnPlayerDeath, do
pawn Код:
if(PlayerInMG[playerid] == 1;
{
    new rand = random(sizeof(RandomSpawn));
    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
    return 1;
}
Reply


Messages In This Thread
1 Error very simple help me. - by Davz*|*Criss - 27.03.2011, 23:11
Re: 1 Error very simple help me. - by mprofitt - 27.03.2011, 23:13
Re: 1 Error very simple help me. - by Davz*|*Criss - 27.03.2011, 23:22
Re: 1 Error very simple help me. - by grand.Theft.Otto - 27.03.2011, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)