13.06.2010, 19:36
Tipow eu Queria Tirar akela faixa da DP e Colocar teleporte quem nem no Gm Larp Ajuda ae Gente
if(pickupid == NOMEDOPICKUP)
{
GameTextForPlayer(playerid,"MENSAGEM", 1000, 1);
SetPlayerInterior(playerid,ID);
SetPlayerPos(playerid,COORDENADA);
}
new pickup1;
pickup1 = CreatePickup(1239, 2, -2638.00, 615.70, 14.45);// mudas as coordenadas e os tipo de pickup
if(pickupid == pickup1)
{
SendClientMessage(playerid, Verde, "Entras-te num local");
SetPlayerInterior(playerid, 17); // tens de ver o interior que queres
SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875); // tens de meter a coordenada que queres
}
//No Topo coloquei Isso forward OnPlayerEnterFood(playerid, foodid); forward PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz); forward OnPlayerExitFood(playerid); forward CheckForWalkingTeleport(playerid);
// public CheckForWalkingTeleport(playerid) // only put teleports ON FOOT here, use another function for vehicle ones - luk0r { /* * HOW TO USE THIS FUNCTION: * * Just use your normal PlayerToPoint functions but make them use PlayerToPointStripped instead. * Use the arguments cx,cy,cz at the end of each call (look at the others for an example). * */ new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz)) {//LSPD Entrance GameTextForPlayer(playerid, "~p~DP", 5000, 1); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,246.7079,66.2239,1003.6406); PlayerInfo[playerid][pInt] = 6; } else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz)) {//LSPD Exit SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953); PlayerInfo[playerid][pInt] = 0; } return 1; }
public OnPlayerExitFood(playerid) { DisablePlayerCheckpoint(playerid); InAFoodPlace[playerid] = 0; return 1; }
// public OnPlayerEnterFood(playerid, foodid) { switch (foodid) { case 1: // chicken { SetPlayerInterior(playerid, 9); PlayerInfo[playerid][pInt] = 9; SetPlayerPos(playerid,365.7793,-9.1699,1001.8516); SetPlayerCheckpoint(playerid, 368.9714,-6.2486,1001.8516, 1.5); GameTextForPlayer(playerid, "~w~Cluckin Bell", 5000, 1); InAFoodPlace[playerid] = 1; } case 2: // burger { SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; SetPlayerPos(playerid,366.0324,-72.6400,1001.5078); SetPlayerCheckpoint(playerid, 376.8571,-67.6620,1001.5151, 1.5); GameTextForPlayer(playerid, "~w~Burger Shot", 5000, 1); InAFoodPlace[playerid] = 2; } case 3: // pizza { SetPlayerInterior(playerid, 5); PlayerInfo[playerid][pInt] = 5; SetPlayerPos(playerid,372.4117,-130.4577,1001.4922); SetPlayerCheckpoint(playerid, 375.6895,-118.9683,1001.4995, 1.5); GameTextForPlayer(playerid, "~w~Well Stacked Pizza", 5000, 1); InAFoodPlace[playerid] = 3; } case 4: // donuts { SetPlayerInterior(playerid, 17); PlayerInfo[playerid][pInt] = 17; SetPlayerPos(playerid,377.5237,-191.6597,1000.6328); SetPlayerCheckpoint(playerid, 379.0611,-186.6032,1000.6328, 0.8); GameTextForPlayer(playerid, "~w~Jim's sticky ring", 5000, 1); InAFoodPlace[playerid] = 4; } } return 1; }
DisableInteriorEnterExits();