SA-MP Forums Archive
[FS]Admin Island Project!!!!Need Small help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [FS]Admin Island Project!!!!Need Small help! (/showthread.php?tid=255517)



[FS]Admin Island Project!!!!Need Small help! - Ronaldo_raul™ - 15.05.2011

As i am working on my new map project ...........i want to make lift that can take the player to the heli pad can some one make a lift so when a player commands like /liftup or something like that the lift will operate and the player would be taken up..........so anyone.......

Please Help!!!

Your credits will be there and if you want to see the screens of the project PM me!


Re: [FS]Admin Island Project!!!!Need Small help! - Naruto_Emilio - 15.05.2011

I can help contact me


Re: [FS]Admin Island Project!!!!Need Small help! - Ronaldo_raul™ - 15.05.2011

Anyone else please..........


Re: [FS]Admin Island Project!!!!Need Small help! - Marco_Valentine - 16.05.2011

give me the 'createobject' line. and the c-ords where you want it to move to and no problem


Re: [FS]Admin Island Project!!!!Need Small help! - Wesley221 - 16.05.2011

I could help you aswell, just pm me if u still need some-one


Re: [FS]Admin Island Project!!!!Need Small help! - ColdIce - 16.05.2011

pawn Код:
#include <a_samp>
new AdminGate;

public OnFilterScriptInit()
{
AdminGate = CreateObject(ID, WHERE IS THE LIFT?);
}


public OnFilterScriptExit()
{

}


public OnPlayerConnect(playerid)
{
return 1;
}


public OnPlayerDisconnect(playerid, reason)
{
return 1;
}


public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}


public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext,"/liftup", true) == 0) {
    if(IsPlayerAdmin(playerid)) {
        if(IsPlayerInRangeOfPoint(playerid, RANGE.0, CO-ORDS WHERE THE LIFT IS WHEN DOWN)) {
            MoveObject (AdminGate, CO-ORDS WHERE LIFT SHOULD GO, SPEED);
        } else {
            return SendClientMessage(playerid,0xFFFFFF,"You aren't in range!");
        }
    } else {
        return SendClientMessage(playerid,0xFFFFFF,"This command is only avaible for RCON Administrators.");
    }
    return 1;
}

if(strcmp(cmdtext,"/liftdown", true) == 0) {
    if(IsPlayerAdmin(playerid)) {
        if(IsPlayerInRangeOfPoint(playerid, RANGE.0, CO-ORDS WHERE THE LIFT IS WHEN ITS UP)) {
            MoveObject (AdminGate, CO-ORDS WHERE THE LIFT IS DOWN, SPEED);
        } else {
            return SendClientMessage(playerid,0xFFFFFF,"You aren't in range!");
        }
    } else {
        return SendClientMessage(playerid,0xFFFFFF,"This command is only avaible for RCON Administrators.");
    }
    return 1;
}
return 0;
}



Re: [FS]Admin Island Project!!!!Need Small help! - Ronaldo_raul™ - 16.05.2011

Quote:
Originally Posted by ColdIce
Посмотреть сообщение
pawn Код:
MoveObject (AdminGate, CO-ORDS WHERE LIFT SHOULD GO, SPEED);
how can i get this coordinates??


Re: [FS]Admin Island Project!!!!Need Small help! - Wesley221 - 16.05.2011

By placing the object, i say use "Editor" as map editer. You can place your elevator where ever you want.


Re: [FS]Admin Island Project!!!!Need Small help! - Ronaldo_raul™ - 16.05.2011

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
By placing the object, i say use "Editor" as map editer. You can place your elevator where ever you want.
Which software you use for making maps ..........and can you give me the link?

And yes thanks for the reply!!!!


Re: [FS]Admin Island Project!!!!Need Small help! - ColdIce - 16.05.2011

https://sampforum.blast.hk/showthread.php?tid=18212