Davor kommt das was mir Firefox gescriptet hat:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lsopengate", true) == 0)
{
if(PlayerToPoint(12, playerid, -2432.849365, 496.752716, 38.108955))
MoveObject(lspd_gate,1588.591675, -1638.115234, 6.670362,4);
SetTimer("GateCloselspd_gate", 7000, 0);
GameTextForPlayer(playerid,"LSPD geoeffnet",5000, 1);
SendClientMessage(playerid, COLOR_YELLOW,"Das Tor wird in 7 Sekunden Automatisch geschlossen.");
}
else
SendClientMessage(playerid, COLOR_RED,"Du bist nicht in der nähe des Tores!");
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
MoveObject(lspd_gate,1588.591675, -1638.115234, 6.670362,4);
SetTimer("GateCloselspd_gate", 7000, 0);
GameTextForPlayer(playerid,"LSPD geoeffnet",5000, 1);
SendClientMessage(playerid, COLOR_YELLOW,"Das Tor wird in 7 Sekunden Automatisch geschlossen.");
}
else
{
SendClientMessage(playerid, COLOR_RED,"Du bist kein Cop/FBI/Army");
return 1;
}
//-------------------------------[forum/teamspeak]--------------------------------------------------------------
if (strcmp(cmdtext, "/forum", true) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Besuche unser Forum unter sa-reallife.tk");
return 1;
}
if (strcmp(cmdtext, "/teamspeak", true) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teamspeak IP: masivegunz.de:8002");
return 1;
}