Wiese geht das tor net runter?
Hir der befehl+Timer:
ocmd:zoll(playerid, params[])
{
for(new z=0; z < sizeof(ZollInfo); z++) {
if(IsPlayerInRangeOfPoint(playerid,5,ZollInfo[z][zX],ZollInfo[z][zY],ZollInfo[z][zZ])) {
GivePlayerMoney(playerid,-500);
//SendClientMessage();
MoveObject(ZollInfo[z][ObjectID],ZollInfo[z][zX],ZollInfo[z][zY]-10,ZollInfo[z][zZ],5);
SetTimer("Tore", 4000, false);
return 1;
} else {
SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
return 1;
}
}
return 1;
}
{
for(new z=0; z < sizeof(ZollInfo); z++) {
if(IsPlayerInRangeOfPoint(playerid,5,ZollInfo[z][zX],ZollInfo[z][zY],ZollInfo[z][zZ])) {
GivePlayerMoney(playerid,-500);
//SendClientMessage();
MoveObject(ZollInfo[z][ObjectID],ZollInfo[z][zX],ZollInfo[z][zY]-10,ZollInfo[z][zZ],5);
SetTimer("Tore", 4000, false);
return 1;
} else {
SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
return 1;
}
}
return 1;
}
public Tore()
{
for(new z=0; z < sizeof(ZollInfo); z++) {
MoveObject(ZollInfo[z][ObjectID],ZollInfo[z][zX],ZollInfo[z][zY]-10,ZollInfo[z][zZ],5);
}
}
{
for(new z=0; z < sizeof(ZollInfo); z++) {
MoveObject(ZollInfo[z][ObjectID],ZollInfo[z][zX],ZollInfo[z][zY]-10,ZollInfo[z][zZ],5);
}
}