Help me with .pwn
#1

Well my problem is... I wanted a cool Admins house Well i downloaded the .pwn File(i could download Only it) and i convernt it and i had the /amx file now.. i go to the Server.cfg and added to filterscripts The .pwn File name
everything is good and all when i opened the server i had the Admin house and could use the commands but All of My Commands(GM) didnt worked
Please help me :P Thanks! <3
Reply
#2

Make sure that OnPlayerCommandText returns 0.

See how f*cking annoying this green text is? You make yourself look like a noob.
Reply
#3

Yep very annoying
Reply
#4

Well i can't find Any "OnPlayerCommandText " At the .pwn file/my GM
Reply
#5

Way To Annoying
Reply
#6

Anyone know how to fix it?
Reply
#7

You may want to size down the font size. Are you sure it's a strcmp command processor? or is it ZCMD?
Reply
#8

This is the Filescript https://sampforum.blast.hk/showthread.php?tid=226786
Reply
#9

have you logined in your rcon?
Reply
#10

Quote:
Originally Posted by amitdahari
Посмотреть сообщение
Well i can't find Any "OnPlayerCommandText " At the .pwn file/my GM
Really?

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:
pawn Код:
if(IsPlayerAdmin(playerid))
statement. Make sure you're logged into RCON before you try it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)