Hi kann ich befehle dopelt vergeben ? ich hab es mal so Gemacht aber tor geht dann nicht mehr auf
Code
if(strcmp(cmd,"/auf", true) == 0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid, 22))
if(IsPlayerInRangeOfPoint(playerid,15.0,-1683.93, 683.47, 20.41))
{
MoveDynamicObject(fbitor3, -1683.59302, 685.90942, 19.42960, 4);
SetTimer("fbitor3close",5000,0);
}
return 1;
}
//FBI HQ Schiebetor
if(strcmp(cmd,"/auf", true) == 0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid, 22))
if(IsPlayerInRangeOfPoint(playerid,15.0,-1572.13, 661.51, 7.19))
{
MoveDynamicObject(fbitor2, -1572.22253, 657.04291, 6.33782, 4);
SetTimer("fbitor2close",5000,0);
}
return 1;
}
if(strcmp(cmd,"/auf", true) == 0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid, 22))
if(IsPlayerInRangeOfPoint(playerid,5.0,253.19, 109.16,1003.22))
{
MoveDynamicObject(fbihqtor2,253.21518, 108.92519, 1006.88000, 4);
SetTimer("fbihqtor2close",5000,0);
}
return 1;
}
//lspdtor
if(strcmp(cmd,"/auf", true) == 0)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid, 22))
if(IsPlayerInRangeOfPoint(playerid,5.0,246.32, 72.97, 1003.64))
{
MoveDynamicObject(lspdtor,246.44479, 72.60710, 1007.19891, 4);
SetTimer("torlspd",5000,0);
}
return 1;
}
//Oamtor
if(strcmp(cmdtext,"/auf",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2258.7551,2038.0107,10.8203))
{
SetObjectRot(oschranke,0.00000, 8.00000, 0.00000);
SetTimer("OamtZu",7000,0);
SendClientMessage(playerid,COLOR_RED,"[Mitarbeiter]: Bitte pass nächstes mal Besser auf!");
SendClientMessage(playerid,COLOR_YELLOW,"[Mitarbeiter]: Achja denk daran dein Auto neu zu parken!");
GivePlayerMoney(playerid, -15000);
FraktionsKasse[23] += 15000;
}
return 1;
}
Alles anzeigen