15.05.2011, 22:27
como fasso pra criar um teleporte so de ida
o cara passa e vai pra um local so isso
o cara passa e vai pra um local so isso
new pickup;
pickup = CreatePickup...
public OnPlayerPickUpPickup(playerid,pickupid)
{
if (pickupid == pickup) {
SetPlayerPos(playerid,x,y,z);
}
return true;
}
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17104) : error 055: start of function body without function header C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17105) : error 010: invalid function or declaration C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(1710 : error 010: invalid function or declaration C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(31224) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6566) : warning 204: symbol is assigned a value that is never used: "pickup" |
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17104) : error 055: start of function body without function header C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17105) : error 010: invalid function or declaration C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(1710 : error 010: invalid function or declaration C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(31224) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6566) : warning 204: symbol is assigned a value that is never used: "pickupp" |
public CustomPickups()
else if (PlayerToPoint(1.0, i, 1352.4741,-1757.7406,13.5078)) //cooredenadas de onde o player tem q estar para ser teleportado
{
SetPlayerPos(i, -30.946699,-89.609596,1003.54687); // coordenadas de par onde ele vai
SetPlayerFacingAngle(i, 0.0);
SetCameraBehindPlayer(i);
SetPlayerInterior(i, 0); //interior
}
public CustomPickups()
else if (PlayerToPoint(1.0, i, 1352.4741,-1757.7406,13.5078)) //cooredenadas de onde o player tem q estar para ser teleportado
{
SetPlayerPos(i, -30.946699,-89.609596,1003.54687); // coordenadas de par onde ele vai
SetPlayerFacingAngle(i, 0.0);
SetCameraBehindPlayer(i);
SetPlayerInterior(i, 0); //interior
}
AddStaticPickup(IDPICKUP, 1, coordenada X,COORDENADA Y,COORDANADA Z)
new shick;
public OnGameModeInit()
{
shick = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1); // https://sampwiki.blast.hk/wiki/CreatePickup
return 1;
}
public OnPlayerPickUpPickup(playerid,pickupid)
{
if (pickupid == shick) return SetPlayerPos(playerid, X, Y, Z); // Mude para suas cordenadas para que ele irб se teleportar.
return 1;
}