19.06.2015, 13:31
PHP код:
dcmd_minigun(playerid,params[])
{
#pragma unused params
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);
}
else(gTeam[playerid] != TEAM_SURVIVANT || AdminLevel[playerid] != 1)
{
SendClientMessage(playerid,0x8C6346FF,"Vous ne pouvez pas utiliser cette commande en йtant qu'un Zombie.");
return 1;
}
return 1;
}