06.02.2013, 23:54
(
Последний раз редактировалось Noles2197; 07.02.2013 в 21:36.
)
The checkpoint works the first time, but when I go back it doesn't show anymore.
It won't re-appear after using it.
It won't re-appear after using it.
pawn Код:
#include <streamer>
new house;
public OnGameModeInit()
{
house = CreateDynamicCP(-1968.6255,109.9457,27.6875,1,0,0,-1,3);
return 1;
}
CMD:enter(playerid, params[],checkpointid)
{
if(IsPlayerInDynamicCP(playerid,house))
{
SetPlayerPos(playerid,365.7158,-9.8873,1001.8516);
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,9);
}
return 1;
}
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == house)
{
SendClientMessage(playerid,COLOR_RED,"Cluckin' Bell");
}
return 1;
}
public OnPlayerLeaveDynamicCP(playerid,checkpointid)
{
if(checkpointid == house)
{
SendClientMessage(playerid,COLOR_RED,"Left Cluckin' Bell entrance");
}
return 1;
}