01.04.2011, 00:40
Well, try to copy ONLY my commands in your "OnPlayerCommandText" function. Like:
pawn Код:
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint( playerid, 1.5, 1555.4861, -1675.3259, 16.1953 ) )
{
if(!IsPlayerInAnyVehicle( playerid ) )
{
SetPlayerInterior( playerid, 6 );
SetPlayerPos( playerid, 246.7840, 63.9002, 1003.6406 );
return 1;
}
else return SendClientMessage( playerid, -1, "You must get out of the vehicle first." );
}
}
if (strcmp("/exit", cmdtext, true, 5) == 0)
{
if(IsPlayerInRangeOfPoint( playerid, 1.5, 246.7955, 62.3329, 1003.6406 ) )
{
if(!IsPlayerInAnyVehicle( playerid ) )
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1553.2699, -1675.4012, 16.1953);
return 1;
}
else return SendClientMessage( playerid, -1, "You must get out of the vehicle first." );
}
}