Quote:
Originally Posted by bruxo00
Use o Streamer.
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; }
|
edita la
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(IsPlayerInDynamicCP(playerid, checkpoint1))
{
SendClientMessage(playerid, -1, "Estб no checkpoint 1");
}
else if(IsPlayerInDynamicCP(playerid, checkpoint2))
{
SendClientMessage(playerid, -1, "Estб no checkpoint 2");
}
return 1;
}