[FS]Admin Island Project!!!!Need Small help!
#1

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!
Reply
#2

I can help contact me
Reply
#3

Anyone else please..........
Reply
#4

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

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

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;
}
Reply
#7

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

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

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!!!!
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)