31.01.2012, 12:32
Hello guys.I have a big problem.I make /enter and /exit command all si nice but when I type in the chat /exit or /enter the server say's SERVER:UNKNOWN COMMAND but the command teleported me.This is the code.
Thanks in advanced
pawn Код:
if (strcmp(cmdtext, "/enter", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2318.7637,-89.8024,26.4844))//palomino general creeck 1
{
SetPlayerPos(playerid, -27.5851,-57.2032,1003.5469);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,2245.9036,52.0571,26.6671))//palomino general creeck 2
{
SetPlayerPos(playerid, -27.5851,-57.2032,1003.5469);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 1);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,2245.9036,52.0571,26.6671))//palomino general creeck 2
{
SetPlayerPos(playerid ,-27.5851,-57.2032,1003.5469);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 2);
}
}
if (strcmp(cmdtext, "/exit", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
{
if ( GetPlayerVirtualWorld( playerid ) == 0 )
SetPlayerPos(playerid, 2318.7637,-89.8024,26.4844);
if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
if ( GetPlayerVirtualWorld( playerid ) == 0 )
SetPlayerInterior(playerid, 0);
if ( GetPlayerVirtualWorld( playerid ) == 0 )
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469))//palomino general creeck 2
{
if(GetPlayerVirtualWorld(playerid) == 1)
SetPlayerPos(playerid, 2245.9036,52.0571,26.6671);
if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
if ( GetPlayerVirtualWorld( playerid ) == 0 )
SetPlayerInterior(playerid, 0);
if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
if ( GetPlayerVirtualWorld( playerid ) == 0 )
SetPlayerVirtualWorld(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469))//palomino general creeck 2
{
if(GetPlayerVirtualWorld(playerid) == 2)
SetPlayerPos(playerid, 2245.9036,52.0571,26.6671);
if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
if ( GetPlayerVirtualWorld( playerid ) == 2 )
SetPlayerInterior(playerid, 0);
if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
if ( GetPlayerVirtualWorld( playerid ) == 2 )
SetPlayerVirtualWorld(playerid, 0);
}
}