13.09.2011, 21:32
By the way - learn using tabs. Your code looks shitty f ex:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//-----[Open]-----
if (strcmp("/Open", cmdtext, true, 10) == 0)
{
MoveObject(gate, 831.0235, -1888.9404, 5.9893, 7);
return 1;
}
//-----[Ohouse]-----
if (strcmp("/ohouse", cmdtext, true,10) == 0)
{
SetPlayerPos(playerid,837.1106, -1875.3643, 13.4764);
return 1;
}
//-----[Close]-----
if (strcmp("/close", cmdtext, true, 10) == 0)
{
MoveObject(gate,831.0235, -1888.9404, 10.8938,7);
return 1;
}
return 0;
}