Hallo Community, ich wollte heute ein Tor scripten, aber das Tor klappt einfach nicht.. O.o
Code :
new vagostor;
new vagostorvar;
vagostor = CreateDynamicObject(980, 1075.1999511719, 1943.5999755859, 12.60000038147, 0, 0, 0);
if(strcmp(cmd,"/vagostor",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,1075.1999511719, 1943.5999755859, 12.60000038147))
{
if(PlayerInfo[playerid][pMember] == 16 PlayerInfo[playerid][pLeader] == 16)
{
if(vagostorvar == 0)
{
MoveObject(vagostor,1075.1999511719, 1943.5999755859, 5.0999999046326,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
vagostorvar = 1;
}
else
{
MoveObject(vagostor,1075.1999511719, 1943.5999755859, 15.60000038147 ,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
vagostorvar = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Vagos Mitglied");
return 1;
}
}