19.06.2015, 13:01
Hi Guys,
I use this code for TEAM SURVIVORS
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.
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:createx, Float:createy, Float:createz, Float: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;
}
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.