Again Checkpoint [+rep]
#1

EDIT:

Sorry for little explaining

I ment that example when you go to that create checkpoint you receive money but when you create more then 1 you cant receive money from all of it.
Reply
#2

Is your checkpoint dynamic?
Reply
#3

Yes im using streamer
Reply
#4

Show your OnPlayerEnterDynamicCP callback and the place where you are initializing your checkpoint which is CreateDynamicCP.
Reply
#5

pawn Код:
CMD:healthpack(playerid,params[])
{
          if(medic[playerid] == 0) return SendClientMessage(playerid,-1,"You need to be medic to use this command");
          if(medica[playerid] == 1) return SendClientMessage(playerid,-1,"You need to wait 1 minute to wait other health pack to disapper");
          new Float:X,Float:Y,Float:Z;
          GetPlayerPos(playerid,X,Y,Z);
          MedicC = CreateDynamicCP(X, Y, Z, 1.0,-1,-1,-1,10.0);
          return 1;
}
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == MedicC)
    {
    new Float:hp; // A new float that will store their health.
    GetPlayerHealth(playerid,hp); // Stores their health to the float.
    if(hp > 90) return SendClientMessage(playerid,-1,"Your health is high do not use health pack leave for other team members");
    SetPlayerHealth(playerid,hp+10); // Increases their health by five
    }
    return 1;
}
EDIT:

Top of my script:

pawn Код:
new MedicC;
Reply
#6

pawn Код:
new MedicC = 0;
CMD:healthpack( playerid, params[] )
{
    if ( medic[playerid] == 0 ) return(SendClientMessage( playerid, -1, "You need to be medic to use this command" ) );
    if ( medica[playerid] == 1 ) return(SendClientMessage( playerid, -1, "You need to wait 1 minute to wait other health pack to disapper" ) );
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    MedicC++;
    MedicC = CreateDynamicCP( X, Y, Z, 1.0, -1, -1, -1, 10.0 );
    return(1);
}
Should work.
Reply
#7

If it works i will give a rep point

EDIT:Still same thing happens! :S
Reply
#8

Still not fixed when i goto 2 checkpoint nothing happens
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)