pawn Код:
if(strcmp(cmd, "/dpsair", true) == 0)
{
if(IsAPDMember(playerid) || IsAFreecop(playerid))
{
// Police Station Ganton
if(IsPlayerInRangeOfPoint(playerid,3.0,322.197998,302.497985,999.148437))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2495.83032227,-1759.26220703,13.19610023);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station El Corona
if(IsPlayerInRangeOfPoint(playerid,3.0,322.197998,302.497985,999.148437))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1935.74462891,-2086.46948242,13.22142220);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station East Los Santos
if(IsPlayerInRangeOfPoint(playerid,3.0,322.197998,302.497985,999.148437))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,2522.33886719,-1343.66760254,30.47849655);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station Rodeo
if(IsPlayerInRangeOfPoint(playerid,3.0,322.197998,302.497985,999.148437))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,617.58319092,-1330.05078125,13.29710579);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station Verona Beach
if(IsPlayerInRangeOfPoint(playerid,3.0,322.197998,302.497985,999.148437))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1026.92041016,-1582.93005371,13.19610023);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
}
}
if(strcmp(cmd, "/dpentrar", true) == 0)
{
if(IsAPDMember(playerid) || IsAFreecop(playerid))
{
// Police Station Ganton
if(IsPlayerInRangeOfPoint(playerid,3.0,2495.83032227,-1759.26220703,13.19610023))
{
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station El Corona
if(IsPlayerInRangeOfPoint(playerid,3.0,1935.74462891,-2086.46948242,13.22142220))
{
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid, 3);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station East Los Santos
if(IsPlayerInRangeOfPoint(playerid,3.0,2522.33886719,-1343.66760254,30.47849655))
{
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid, 4);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station Rodeo
if(IsPlayerInRangeOfPoint(playerid,3.0,617.58319092,-1330.05078125,13.29710579))
{
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid, 5);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
// Police Station Verona Beach
if(IsPlayerInRangeOfPoint(playerid,3.0,1026.92041016,-1582.93005371,13.19610023))
{
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid, 6);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
GameTextForPlayer(playerid, "~w~Police Station", 5000, 1);
return 1;
}
}
}