pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/down", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_GREEN, "The Elevator is going down");
MoveObject(Lift, 3281.4638671875, -1870.5283203125, 0.87221229076385,8);
MoveObject(Pole, 3282.1201171875, -1868.962890625, -166.86474609375,8);
return 1;
}
if(!strcmp("/home", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_ORANGE, "The Elevator is going to ground floor");
MoveObject(Lift, 3281.4643554688, -1870.5286865234, 11.997212409973,8);
MoveObject(Pole, 3282.1201171875, -1868.962890625, -155.73977661133,8);
return 1;
}
if(!strcmp("/up", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_PINK, "The Elevator is going up to the Parachute jump location");
MoveObject(Lift, 3281.4638671875, -1870.5283203125, 333.42324829102,8);
MoveObject(Pole, 3282.1201171875, -1868.962890625, 165.68031311035,8);
return 1;
}
if(!strcmp("/come", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_ORANGE, "You have called the Elevator,!PLEASE WAIT!");
MoveObject(Lift, 3281.4643554688, -1870.5286865234, 11.997212409973,8);
MoveObject(Pole, 3282.1201171875, -1868.962890625, -155.73977661133,8);
return 1;
}
if(!strcmp("/stop", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_RED, "The Elevator is stopped");
StopObject(Lift);
StopObject(Pole);
}
if(!strcmp("/gotoisland", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_PINK, "Jack Sparrow says: Ok we are going to your Private Island");
MoveObject(pirateship, 3153.94848633,-2128.71142578,14.25000000,4);
MoveObject(pirateflag, 3153.96679688,-2128.46655273,14.06401825,4);
return 1;
}
if(!strcmp("/backtohome", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_GREEN, "Jack Sparrow says: !Pirates! turn back the ship to home");
MoveObject(pirateship, 3249.76074219,-1915.40478516,14.25000000,3);
MoveObject(pirateflag, 3249.91552734,-1915.26013184,14.06401825,3);
return 1;
}
if(!strcmp("/stopship", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_RED, "Jack Sparrow says: Waiting for your orders, Sir");
StopObject(pirateship);
StopObject(pirateflag);
}
if(!strcmp("/mansionhelp", cmdtext, true))
{
if(IsPlayerAdmin(playerid))
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "MANSION HELP", "/mansion Teleport to the mansion\n /myisland Teleport to your private island\n /myairport Teleport to your private airport\n /up Elevator goes up\n /down Elevator goes down\n /home Elevator goes to ground floor\n /stop Elevator stops\n /come Call the elevator\n /gotoisland Pirate ship takes you to the island\n /backtohome Pirate ship takes you back to mansion\n /stopship ship stops ", "Continue", "cancel");
else SendClientMessage(playerid, COLOR_RED, "You cannot use that command, Only rcon admins can use this command");
return 1;
}
if(!strcmp("/mansion", cmdtext, true))
if(IsPlayerAdmin(playerid))
return SetPlayerPos(playerid, 3314.3899,-1779.9297,12.8997);
if(!strcmp("/myisland", cmdtext, true))
if(IsPlayerAdmin(playerid))
return SetPlayerPos(playerid, 3214.8110,-2102.8467,1.6401);
if(!strcmp("/myairport", cmdtext, true))
if(IsPlayerAdmin(playerid))
return SetPlayerPos(playerid, 3364.6375,-1625.9736,11.8271);
return 1;
}
Try loading the Filterscript on its own with no others running, if it works, add the other ones. If not, convert it to another command processor to match the rest that are in your Gamemode. Don't forget the:
statement. Make sure you're logged into RCON before you try it.