Moving objects
#4

I have put the script into my GM, and the cmds in OnPlayerCommandText does not work, i get (unknown command)

So i was make the cmds like COMMAND:mycommand(playerid, params[]), but i want only members of team 1 to be able to use the cmds

but when i have this the object doesnt move and i only get the message, if i delete it works fine
pawn Код:
if(Member[playerid] == 1)
What am i doing wrong?
pawn Код:
COMMAND:aftup(playerid, params[])
{
    if(Member[playerid] == 1)
    MoveObject (lift1,-809.56597900391, 439.33920288086, 17.329999923706, 0.5);
    SendClientMessage(playerid, 0xFFFF00AA, "Activating aft lift up Sir");
    return 1;
}
COMMAND:aftdown(playerid, params[])
{
    if(Member[playerid] == 1)
    MoveObject (lift1,-809.56597900391, 439.33920288086, 10.260000228882, 0.5);
    SendClientMessage(playerid, 0xFFFF00AA, "Activating aft lift down Sir");
    return 1;
}
Reply


Messages In This Thread
Moving objects - by cruising - 07.06.2011, 17:03
Re: Moving objects - by Wesley221 - 07.06.2011, 17:10
Re: Moving objects - by cruising - 07.06.2011, 17:12
Re: Moving objects - by cruising - 07.06.2011, 19:27
Re: Moving objects - by Wesley221 - 08.06.2011, 08:22
Re: Moving objects - by ricardo178 - 08.06.2011, 09:19
Re: Moving objects - by cruising - 08.06.2011, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)