27.03.2011, 23:23
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 :
So, put PlayerInMG[playerid] == 1; under your mg command, then under OnPlayerDeath, do
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];
pawn Код:
if(PlayerInMG[playerid] == 1;
{
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
return 1;
}