07.06.2011, 19:27
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
What am i doing wrong?
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)
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;
}

