17.08.2014, 10:27
Quote:
arrow checkpoint => https://sampwiki.blast.hk/wiki/CreatePickup ID 1318
|
Code:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#define COLOR_LIGHTBLUE 0x00E1FF
new Checkpoint[20];
public OnFilterScriptInit()
{
Checkpoint[3] = CreateDynamicCP(1481.0745,-1772.3140,18.7958,2,-1,-1,-1,30);//City Hall Enter
Checkpoint[4] = CreateDynamicCP(390.7699,173.8530,1008.3828,2,-1,3,-1,100);//City Hall Exit
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Checkpoint[3])
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome to Los Santos City Hall");
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.5708,173.8486,1008.3828);
SetPlayerFacingAngle(playerid,89.2370);
}
if(checkpointid == Checkpoint[4])
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1481.4359,-1768.5748,18.7958);
SetPlayerFacingAngle(playerid,2.7449);
}
return 1;
}