31.03.2011, 09:36
pawn Код:
new bool:GateOpen;
if ( !strcmp("/vдrav", cmdtext, true ))
{
GetPlayerName(playerid,pName,64);
if( GateOpen )
{
if(!strcmp(pName,"Steven_Hayen2",true))
{
MoveObject(gate, 321.35000000,-1188.19000000,75.35000000,2.00000000);
GateOpen = false;
}
}
else
{
if(!strcmp(pName,"Steven_Hayen2",true))
{
MoveObject(gate, 321.35000000,-1188.19000000,70.52000000,1.00000000);
GateOpen = true;
}
}
return 1;
}