24.07.2012, 08:51
this is enter/exit scripts with commands
//>> You need ZCMD for this : https://sampforum.blast.hk/showthread.php?tid=91354 ..
Rep+ if works
pawn Код:
//** < Enter & Exit's script > **//
#include <a_samp>
#include <zcmd>
new CrewBarEnter;
new CrewBarExit;
new SexShop1Enter;
new SexShop1Exit;
public OnGameModeInit()
{
SexShop1Enter = CreatePickup(1272, 23, 2085.5171,2073.9302,11.0547, -1);
SexShop1Exit = CreatePickup(1272, 23, -100.2415,-24.9275,1000.7188, -1);
CrewBarEnter = CreatePickup(1272, 23, 2441.1714,2065.4771,10.8203, -1);
CrewBarExit = CreatePickup(1272, 23,501.7646,-67.5632,998.7578, -1);
return 1;
}
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2085.5171,2073.9302,11.0547))
{
SetPlayerPos(playerid,-100.0634,-23.3113,1000.7188);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 1);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2441.1714,2065.4771,10.8203))
{
SetPlayerPos(playerid,501.9742,-69.4052,998.7578);
SetPlayerInterior(playerid,11);
SetPlayerVirtualWorld(playerid, 1);
}
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -100.0634,-23.3113,1000.7188))
{
SetPlayerPos(playerid,2085.5171,2073.9302,11.0547);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 501.9742,-69.4052,998.7578))
{
SetPlayerPos(playerid,2441.1714,2065.4771,10.8203);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid ==SexShop1Enter)
{
GameTextForPlayer(playerid, "/ENTER", 5000,1);
}
if(pickupid ==SexShop1Exit)
{
GameTextForPlayer(playerid, "/EXIT", 5000,1);
}
if(pickupid ==CrewBarEnter)
{
GameTextForPlayer(playerid, "/ENTER", 5000,1);
}
if(pickupid ==CrewBarExit)
{
GameTextForPlayer(playerid, "/EXIT", 5000,1);
return 1;
}
return 1;
}
Rep+ if works