09.02.2012, 04:44
Hey guyz please tell me how can i make red marker checkpoint and whem someone Pickups It It just Destroys
Please I need this ASAP
Please I need this ASAP
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,X,Y,Z,CHECKPOINTSIZE);
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
DestroyDynamicCP(checkpointid);
IsValidDynamicCP(checkpointid);
TogglePlayerDynamicCP(playerid, checkpointid, toggle);
TogglePlayerAllDynamicCPs(playerid, toggle);
IsPlayerInDynamicCP(playerid, checkpointid);
DestroyAllDynamicCPs();
CountDynamicCPs();
OnPlayerEnterDynamicCP(playerid, checkpointid);
OnPlayerLeaveDynamicCP(playerid, checkpointid);
OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
OnPlayerLeaveDynamicRaceCP(playerid, checkpointid);
//at top
new TestCp;
public OnPlayerSpawn(playerid)
{
TestCp = CreateDynamicCP(playerid,x,y,z,world id[0],interiorid[0],playerid[-1],100);
return 1;
}
public OnPlayerEnterDyanmicCP(playerid,checkpointid)
{
if(checkpointid == TestCp && IsPlayerInDynamicCP(playerid,TestCp)
{
SendClientMessage(playerid,COLOR,"Your Text Here");
//add what you want here.
}
return 1;
}