26.03.2016, 18:37
PHP код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
TestCP = CreateDynamicCP(0.0, 0.0, 10.0, 3.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == TestCP)
{
//Code
SendClientMessage(playerid, COLOR_WHITE, "You have entered TestCP.");
}
}
public OnPlayerExitDynamicCP(playerid, checkpointid)
{
if(checkpointid == TestCP)
{
//Code
SendClientMessage(playerid, COLOR_WHITE, "You have exited TestCP.");
}
}