// topo GM
new Mundo3;
new Mundo4;
//OnPlayerPickUpPickup
if(pickupid == Mundo3)
{
SetPlayerVirtualWorld(playerid,3);
SendClientMessage(playerid, BRANCO, "Teleportado para Konoha");
SetTimer("MundoVirtual3",3000,0);
SetPlayerPos(playerid, 629.1714,-571.4444,16.8616);
SetPlayerFacingAngle(playerid,270.3426);
return 1;
}
if(pickupid == Mundo4)
{
SetPlayerVirtualWorld(playerid,4);
SendClientMessage(playerid, BRANCO, "Teleportado para Kakurezato");
SetTimer("MundoVirtual4",3000,0);
SetPlayerPos(playerid, -2119.48,-180.13,35.32);
SetPlayerFacingAngle(playerid,354.1216);
return 1;
}
/ ongamemodeinit
Mundo3 = CreatePickup(1318, 23,246.6994,62.3249,1003.6406,0);
Mundo4 = CreatePickup(1318, 23,-2119.48,-179.13,35.32);
// topo do gm
forward MundoVirtual0(playerid);
forward MundoVirtual1(playerid);
forward MundoVirtual2(playerid);
forward MundoVirtual3(playerid);
public MundoVirtual0(playerid)
{
SetPlayerVirtualWorld(playerid,0);
return 1;
}
public MundoVirtual1(playerid)
{
SetPlayerVirtualWorld(playerid,1);
return 1;
}
public MundoVirtual2(playerid)
{
SetPlayerVirtualWorld(playerid,2);
return 1;
}
public MundoVirtual0(playerid) {
for(new i=0; i<MAX_PLAYERS; i++) { SetPlayerVirtualWorld(i, 0); return 1; }
forward LOL(); //Sem Parametros public LOL()//Sem /Parametros { print("lol"); return 1; }
forward Oi(playerid); //Parametros public Oi(playerid)//Parametros { print("lol"); return 1; }
pawn Код:
|
if(pickupid == Mundo3)
{
SetPlayerVirtualWorld(playerid,3);
SendClientMessage(playerid, BRANCO, "Teleportado para Konoha");
SetTimerEx("MundoVirtual3",3000,0, "d", playerid);
SetPlayerPos(playerid, 629.1714,-571.4444,16.8616);
SetPlayerFacingAngle(playerid,270.3426);
return 1;
}
if(pickupid == Mundo4)
{
SetPlayerVirtualWorld(playerid,4);
SendClientMessage(playerid, BRANCO, "Teleportado para Kakurezato");
SetTimerEx("MundoVirtual4",3000,0, "d", playerid);
SetPlayerPos(playerid, -2119.48,-180.13,35.32);
SetPlayerFacingAngle(playerid,354.1216);
return 1;
}
public MundoVirtual0(playerid)
{
SetPlayerVirtualWorld(playerid,0);
SendClientMessage(playerid, BRANCO, "Virtual Word Setado para 0 Obrigado ao 2 Funcionou =]
");
return 1;
}