was mache ich hier faslsch?
if(strcmp(cmd, "/parkplatz", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 8.0,1456.97119, -1624.22388, -0.16930))
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht an dem Parkhaus");
return 1;
}
if(parkplatz[playerid] ==0)
{
parkplatz[playerid] = 1;
GivePlayerMoney(playerid, -20);
SetObjectRot(parkschranke,0.00000, 0.00000, 90.00000);//tor unten
PlaySoundForPlayer(playerid,1035);
SetTimer("Closeparkplatz", 5000, 0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid, COLOR_RED, "Beeil dich die Schranke schließt in 5sek!");
}
}
else if(parkplatz[playerid] ==1)
{
SetObjectRot(parkschranke,0.00000, 0.00000, 90.00000);//tor unten
PlaySoundForPlayer(playerid,1035);
SetTimer("Closeparkplatz", 5000, 0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid, COLOR_RED, "Beeil dich die Schranke schließt in 5sek!");
}
return 1;
}