Originally Posted by #.'
What is maybe wrong, when Server:Unknown Command wrote into the Chatbox?
|
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if((deactivated)&& PlayerInfo[playerid][pAdmin] < 1331)
{
SendClientMessage(playerid, COLOR_GRAD2, " Deactivated !");
return 1;
}
if (gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du sitzt in einem Fahrzeug !");
return 1;
}
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualW]);
PlayerInfo[playerid][pLocal] = i;
if(IsACop(playerid))
{
IsInHouse[playerid] = 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Geschlossen", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
//printf("Found House :%d",i);
if(!IsACop(playerid) && (i == 3 || i == 5 || i == 7))
{
SendClientMessage(playerid, COLOR_GRAD2, " Only Cops !");
return 1;
}
if(OnDuty[playerid] < 1 && (i == 3 || i == 5 || i == 7 || i == 8))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du bist nicht im Dienst !");
return 1;
}
if(PlayerInfo[playerid][pGunLic] != 1 && (i == 0 || i == 1 || i == 3 || i == 5 || i == 7 || i == 8))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du besitzt noch keinen Waffenschein !");
return 1;
}
if(IsACop(i) && OnDuty[playerid] != 0 && (i == 0 || i == 1))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du bist kein Polizist / FBI / N.Guard !");
return 1;
}
new hour,minuite,second;
gettime(hour,minuite,second);
FixHour(hour);
hour = shifthour+1;
if(i == 4 || i == 6)
{
if(hour >= 8 && hour < 12 || hour >= 14 && hour <= 21) { }
else
{
SendClientMessage(playerid, COLOR_GRAD2, "The Bank is only open from 8am to 12am and from 2pm to 9pm !");
SendClientMessage(playerid, COLOR_GRAD2, "You can use the Cash Points.");
return 1;
}
}
if(i == 0 || i == 1)
{
if(hour >= 8 && hour <= 12 || hour >= 14 && hour <= 23) { }
else
{
SendClientMessage(playerid, COLOR_GRAD2, "The Gun Shop is only open from 8am to 1pm and from 2pm to 11pm !");
SendClientMessage(playerid, COLOR_GRAD2, "Call a Weapon dealer or a bomb dealer for Weapons and bombs.");
return 1;
}
}
if(i == 4 || i == 6)
{
if(WantedLevel[playerid] <= 5) { }
else
{ SendClientMessage(playerid, COLOR_GRAD2, " Your Wanted Level is too high !");
return 1;
}
}
if(PlayerInfo[playerid][pPbiskey] == i || PlayerMoney[playerid] >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Close", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out of Stock", 5000, 1);
return 1;
}
if(i == 4 || i == 6)
{
PlayerInfo[playerid][bank] = 1;
}
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= BizzInfo[i][bEntranceCost];
format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerVirtualWorld(playerid, BizzInfo[i][bVirtualW]);
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter biz %s (BizID: %d)", dood,BizzInfo[i][bEntranceCost],BizzInfo[i][bMessage],i);
printf("%s", string);
BizzLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~You don't have the cash", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || PlayerMoney[playerid] >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Close", 5000, 1);
return 1;
}
if(SBizzInfo[i][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out of Stock", 5000, 1);
return 1;
}
if(i == 10)
{
PaintballPlayers ++;
PlayerPaintballing[playerid] = 1;
new rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
TogglePlayerControllable(playerid, 0);
}
else if(i == 11)
{
PlayerKarting[playerid] = 1;
SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
}
else
{
return 1;
}
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= SBizzInfo[i][sbEntranceCost];
gSpentCash[playerid] = PlayerMoney[playerid] ;
SBizzInfo[i][sbProducts]--;
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter biz %s (BizID: %d)", dood,SBizzInfo[i][sbEntranceCost],SBizzInfo[i][sbMessage],i);
printf("%s", string);
BizzLog(string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~You don't have the cash", 5000, 1);
}
}
}
if (PlayerToPoint(3.0, playerid,-2162.2554,-2385.9541,30.6250))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
}
else if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 242;
}
}
else if (PlayerToPoint(3.0, playerid,940.6255,-1718.5240,13.9356))
{
if(PlayerToPoint(3.0, playerid,940.6255,-1718.5240,13.9356) && IsACop(playerid))
{
GameTextForPlayer(playerid, "~w~Welcome to the FBI HQ", 5000, 1);
SetPlayerPos(playerid,371.5483,181.0158,1014.1875);
SetPlayerFacingAngle(playerid, 0.00);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SetPlayerVirtualWorld(playerid, 0);
}
}
else if (PlayerToPoint(3.0, playerid,-2720.0474,-318.7202,7.8438))
{
if(PlayerToPoint(3.0, playerid,-2720.0474,-318.7202,7.8438))
{
GameTextForPlayer(playerid, "~w~Welcome to the Mayor Office", 5000, 1);
SetPlayerPos(playerid,366.7357,207.0737,1008.3828);
SetPlayerFacingAngle(playerid, 90.00);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SetPlayerVirtualWorld(playerid, 0);
}
}
else if (PlayerToPoint(3.0, playerid,587.1526,-1490.0492,15.4041))
{
if(PlayerToPoint(3.0, playerid,587.1526,-1490.0492,15.4041) && PlayerInfo[playerid][pMember] == 10 ||PlayerToPoint(3.0, playerid,587.1526,-1490.0492,15.4041) && PlayerInfo[playerid][pLeader] == 10)
{
if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
if(WantedLevel[playerid] > 6)
{
SendClientMessage(playerid, COLOR_GRAD2, "Your Wanted Level is too high ! !");
return 1;
}
SetPlayerPos(playerid,595.7545,-1454.4692,80.1563);
SetPlayerFacingAngle(playerid, 360.00);
GameTextForPlayer(playerid, "~w~Welcome to the Taxi helicopters", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
}
}
else
{
SetPlayerVirtualWorld(playerid, 0);
}
}
else if (PlayerToPoint(1.0, playerid,379.9951,180.6911,1014.1875))
{
if(PlayerToPoint(1.0, playerid,379.9951,180.6911,1014.1875) && PlayerInfo[playerid][pMember] == 2 ||PlayerToPoint(1.0, playerid,379.9951,180.6911,1014.1875) && PlayerInfo[playerid][pLeader] == 2)
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(WantedLevel[playerid] > 3)
{
SendClientMessage(playerid, COLOR_GRAD2, "Your Wanted Level is too high ! !");
return 1;
}
SetPlayerPos(playerid,950.5430,-1731.0797,27.7148);
SetPlayerFacingAngle(playerid, 360.00);
GameTextForPlayer(playerid, "~w~Welcome to the FBI helicopters", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
}
}
else
{
SetPlayerVirtualWorld(playerid, 0);
}
}
}
return 1;
}
echo Executing Server Config...
lanmode 0
rcon_password lennyficktevoganzhart
maxplayers 500
port 8888
hostname Evolution Role Play!
gamemode0 gf_rocks
password 123
filterscripts MidoStream speedometer seifanims
announce 0
query 1
weburl [url]www.evolution-rp.de[/url][url=http://][/url]
maxnpc 2
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000