24.08.2013, 11:01
Use o Streamer.
Nгo percebi muito bem o que vocк queria, mas deve ser isto:
Nгo percebi muito bem o que vocк queria, mas deve ser isto:
pawn Код:
new checkpoint1;
new checkpoint2;
CMD:criarcheck1(playerid, params[])
{
DestroyDynamicCP(checkpoint2);
checkpoint1 = CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
return 1;
}
CMD:criarcheck2(playerid, params[])
{
DestroyDynamicCP(checkpoint1);
checkpoint2 = CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(IsPlayerInDynamicCP(playerid, checkpoint1))
{
SendClientMessage(playerid, -1, "Estб no checkpoint 1");
}
else if(IsPlayerInDynamicCP(playerid, checkpoint1))
{
SendClientMessage(playerid, -1, "Estб no checkpoint 2");
}
return 1;
}