Hay ich habe soeben noch ein Tor gescriptet ..
Hier mal ein viedo
http://www.youtube.com/watch?v=Kv2Jmcci-fc&feature=plcp
Oben
new ftor;
ftor = CreateObject(980, 1066.8000488281, 1363.4000244141, 12.39999961853, 0, 0, 0);
//Fahrschule tor
if(strcmp(cmd,"/ftor",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(htorvar == 0)
{
MoveObject(ftor, - 1066.8000488281,1363.4000244141,12.39999961853,2.0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
htorvar = 1;
}
else
{
MoveObject(ftor, - 1066.8000488281,1363.4000244141,12.39999961853,2.0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
htorvar = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Fahrschule");
return 1;
}