SAMP Objects Not Moving
#1

This is the script.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/gate", cmdtext, true) == 0)
			{
	if(hqgate1 == 1)
				{
	MoveObject(hqgate1, 1626.8512,-1856.5885,25.6468,158);
	SendClientMessage(playerid, 0x9ACD32A, "|-Gate Open-|");
	hqgate1 = 0;
				}
	else if(hqgate1 == 0)
				{
	MoveObject(hqgate1, 1622.0712,-1862.1893,13.5519,358);
	SendClientMessage(playerid, 0xAA3333FF, "|-Gate Closed-|");
	hqgate1 = 1;
		}
	return 1;
	}
	return 0;
}
Reply
#2

Put this above your script

pawn Код:
new hqgate1 = 0;
Reply
#3

Quote:
Originally Posted by Hipflop
Посмотреть сообщение
Put this above your script

pawn Код:
new hqgate1 = 0;
Yes, its there
Reply
#4

pawn Код:
//put this on top of the script

new hqgate11 = 0;

// than
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/gate", cmdtext, true) == 0)
            {
    if(hqgate11 == 1)
                {
    MoveObject(hqgate1, 1626.8512,-1856.5885,25.6468,158);
    SendClientMessage(playerid, 0x9ACD32A, "|-Gate Open-|");
    hqgate11 = 0;
                }
    else if(hqgate11 == 0)
                {
    MoveObject(hqgate1, 1622.0712,-1862.1893,13.5519,358);
    SendClientMessage(playerid, 0xAA3333FF, "|-Gate Closed-|");
    hqgate11 = 1;
        }
    return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)