Again Checkpoint [+rep] -
lordturhan - 10.03.2012
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.
Re: Again Checkpoint [+rep] - T0pAz - 10.03.2012
Is your checkpoint dynamic?
Re: Again Checkpoint [+rep] -
lordturhan - 10.03.2012
Yes im using streamer
Re: Again Checkpoint [+rep] - T0pAz - 10.03.2012
Show your
OnPlayerEnterDynamicCP callback and the place where you are initializing your checkpoint which is
CreateDynamicCP.
Re: Again Checkpoint [+rep] -
lordturhan - 10.03.2012
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:
Re: Again Checkpoint [+rep] - T0pAz - 10.03.2012
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.
Re: Again Checkpoint [+rep] -
lordturhan - 10.03.2012
If it works i will give a rep point
EDIT:Still same thing happens! :S
Re: Again Checkpoint [+rep] -
lordturhan - 10.03.2012
Still not fixed when i goto 2 checkpoint nothing happens