28.06.2009, 23:42
hi, i have downloaded a checkpoint streamer by yaheli and everything work. But whatever i do, the checkpoint doesnt do that.
here all important lines:
yeah its long i know but i hope someone can help me please
the cps works but the checkpoint dont show me the gametext... hope u know why that doesn't happen?
here all important lines:
pawn Код:
#include <YCPS> //NEW CPS
pawn Код:
forward OnPlayerExitStreamCheckpoint(playerid, checkpointid);
forward SuperCheckpointStreamer(playerid);
pawn Код:
public OnPlayerConnect(playerid)
{
YCP_OnPlayerConnect(playerid); //NEW CPS
return 1;
}
pawn Код:
public OnGameModeInit()
{
ShowNameTags(1);
YCP_OnGameModeInit(); //NEW CPS
SetTimer("nesty's_Fun_Mode_0.2", 1000, 1);
SetTimer("YCP_OnPlayerUpdate", 3000, false);
SetTimer("SuperCheckpointStreamer", 1000, true);
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
YCP_OnPlayerEnterCheckpoint(playerid);
return 1;
}
pawn Код:
public SuperCheckpointStreamer(playerid)
{
AAAA = SetPlayerStreamCheckpoint(playerid, 2418.9182,84.2026,26.2336, 3.0, 50);
BBBB = SetPlayerStreamCheckpoint(playerid, 2279.2937,26.5315,26.6311, 3.0, 50);
CCCC = SetPlayerStreamCheckpoint(playerid, 2237.8884,24.7301,26.6835, 3.0, 50);
return 1;
}
pawn Код:
public OnPlayerExitStreamCheckpoint(playerid, checkpointid)
{
return 1;
}
pawn Код:
public OnPlayerEnterStreamCheckpoint(playerid, checkpointid)
{
if(checkpointid == AAAA)
{
GivePlayerWeapon(playerid,37,500);
GameTextForPlayer(playerid,"Checkpoint AAAA!",3000,5);
}
if(checkpointid == BBBB)
{
GivePlayerWeapon(playerid,37,500);
GameTextForPlayer(playerid,"Checkpoint BBBB!",3000,5);
}
if(checkpointid == CCCC)
{
GivePlayerWeapon(playerid,37,500);
SendPlayerFormattedText(playerid,"Checkpoint CCCC!",0);
PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
}
return 1;
}
pawn Код:
public OnPlayerUpdate(playerid)
{
YCP_OnPlayerUpdate(playerid); //NEW CPS
return 1;
}
the cps works but the checkpoint dont show me the gametext... hope u know why that doesn't happen?