Minigun question?
#1

Hi Guys,

I use this code for TEAM SURVIVORS

PHP код:
dcmd_minigun(playerid,params[])
{
  
#pragma unused params
  
if(gTeam[playerid] != TEAM_SURVIVANT || AdminLevel[playerid] != 1)
  {
      
SendClientMessage(playerid,0x8C6346FF,"Vous ne pouvez pas utiliser cette commande en йtant qu'un Zombie.");
      return 
1;
  }
  if(
gTeam[playerid] == TEAM_SURVIVANT || AdminLevel[playerid] == 1)
  {
  new 
Float:createxFloat:createyFloat:createzFloat:Rotation;
  
GetPlayerPos(playerid,createx,createy,createz);
  
GetPlayerFacingAngle(playerid,Rotation);
  
SaveMinigunDataToLog(CreateMinigun(createx,createy,createz -1,Rotation,10,4,true),"blub");
  
MinigunPlaced[playerid] =1;
  
SetTimer("DetruireMinigun",180000,1);
  }
  return 
1;
}
PUBLIC:
DetruireMinigun(playerid)
{
    new 
minigunid;
    
DestroyMinigun(minigunid);
    
MinigunPlaced[playerid] =0;

So they can create their miniguns to attack everyone,

But, i have a question ?

How to make this minigun attacks only the zombies and not the survivors ?

Sorry for my bad english i am french

Thanks.
Reply


Messages In This Thread
Minigun question? - by KillerDVX - 19.06.2015, 13:01
Re: Minigun question? - by ikey07 - 19.06.2015, 13:26
Re : Minigun question? - by KillerDVX - 19.06.2015, 13:31
Re: Minigun question? - by ikey07 - 19.06.2015, 13:33
Re : Minigun question? - by KillerDVX - 19.06.2015, 13:34
Re: Minigun question? - by ikey07 - 19.06.2015, 13:36
Re : Re: Minigun question? - by KillerDVX - 19.06.2015, 13:39
Re : Minigun question? - by KillerDVX - 19.06.2015, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)