22.12.2010, 16:14
tenta assim...
Nao testei!
Nao testei!
pawn Код:
//No topo do seu GM/FS
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
//No public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
//========================ENTRADA DA BURGUER SHOT DE SF=========================
if (PRESSED( KEY_SECONDARY_ATTACK ))//Tecla F
{
if (PlayerToPointStripped(2.0, playerid,-2355.8181,1008.1110,50.8984, cx,cy,cz))//Entrada
{
SetPlayerPos(playerid, 363.3360,-74.5500,1001.5078 );//Seta o player dentro da burguer shot de SF
SetPlayerInterior(playerid,16);
SetPlayerVirtualWorld(playerid,1);
return 1;
}
}
//========================ENTRADA DA BURGUER SHOT DE LS=========================
if (PRESSED( KEY_SECONDARY_ATTACK ))//Tecla F
{
if (PlayerToPointStripped(2.0, playerid,X,Y,Z, cx,cy,cz))//Entrada de LS coloque as coords!
{
SetPlayerPos(playerid,X,Y,Z );//Seta o player dentro da burguer shot de LS
SetPlayerInterior(playerid,16);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
}
if (PRESSED( KEY_SECONDARY_ATTACK ))//Tecla F
{
new vid[MAX_PLAYERS] = GetPlayerVirtualWorld(playerid);
if (PlayerToPointStripped(2.0, playerid,363.3360,-74.5500,1001.5078, cx,cy,cz))
{
if (vid[playerid] == 1)//Se ele entro em SF vai sair em SF
{
SetPlayerPos(playerid, -2355.8181,1008.1110,50.8984);
GameTextForPlayer(playerid, "~r~San Fierro",5000,3);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid,0);
return 1;
}
else if(vid[playerid] == 0)//Se ele entro em LS vai sair em LS
{
SetPlayerPos(playerid, x,y,z);//Coloque as coords de los santos.
GameTextForPlayer(playerid, "~r~Los Santos",5000,3);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
}