if(strcmp(cmdtext,"/gate",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1887.69995117,1101.19995117,12.39999962))
{
if(SpielerInfo[playerid][pTeam] == 5)
{
SetTimer("YGate",5000,0);
MoveDynamicObject(YakuGate[0],1887.69995117,1101.19995117,12.39999962+6,4);
SendClientMessage(playerid,COLOR_Farbe1,"*Yakuza* Das Tor wird in 5 Sekunden automatisch schliessen.");
return 1;
}
}
else SendClientMessage(playerid,COLOR_Farbe1,"Du bist an keinem Tor!");
}
teste so: