Checkpoint help
#1

This won't show up when i enter the checkpoint, mabye you guys can help me out thanks in advance!

Код:
			   GameTextForPlayer(playerid, "~b~~h~Clothing Shop~n~~w~Outfit: ~g~$200~n~~r~/clothes~n~(/items for hats, glases etc..)", 3000, 5);
Код:
#define CHECKPOINT_CLOTHES 128
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
     switch(
GetPVarInt(playerid"Checkpoint"))
        {
            case 
CHECKPOINT_NONEDisablePlayerCheckpoint(playerid);
               case 
CHECKPOINT_CLOTHES:
               {
               
GameTextForPlayer(playerid"~b~~h~Clothing Shop~n~~w~Outfit: ~g~$200~n~~r~/clothes~n~(/items for hats, glases etc..)"30005);
              }
        }
    } 
PHP код:
new Float:CheckpointAreas[6][6] = {
{
207.5909,-110.5292,1005.7423,217.4284,-99.3221,1003.7321}, // Binco
{204.5461,-167.7819,1000.7054,204.2256,-159.8634,999.5313}, // Didier Sachs
{207.1015,-139.8937,1003.5370,199.2238,-128.6456,1002.9193}, // Pro Laps
{203.9850,-50.3426,1002.0959,203.7788,-43.4468,1001.5625}, // Suburban
{226.8983,-7.9157,1002.3958,206.3996,-8.5240,1000.2086}, // Victim
{161.2953,-95.8920,1001.9630,161.2016,-83.5888,1000.8359// ZIP
};
new 
CheckpointAreaType[6][1] = {
{
CHECKPOINT_CLOTHES},
{
CHECKPOINT_CLOTHES},
{
CHECKPOINT_CLOTHES},
{
CHECKPOINT_CLOTHES},
{
CHECKPOINT_CLOTHES},
{
CHECKPOINT_CLOTHES}
}; 
PHP код:
forward LoadChecks(playerid);
public 
LoadChecks(playerid)
{
    for(new 
0sizeof(CheckpointAreas); i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid,20.0,CheckpointAreas[i][0],CheckpointAreas[i][1],CheckpointAreas[i][2]))
        {
            
SetPlayerCheckpoint(playerid,CheckpointAreas[i][3],CheckpointAreas[i][4],CheckpointAreas[i][5],1.0);
            
SetPVarInt(playerid"Checkpoint"CheckpointAreaType[i][0]);
        }
    }
    return 
1;

Reply


Messages In This Thread
Checkpoint help - by N0FeaR - 26.01.2016, 13:59
Re: Checkpoint help - by Sascha - 26.01.2016, 15:33
Re: Checkpoint help - by Runn3R - 26.01.2016, 16:42
Re: Checkpoint help - by N0FeaR - 26.01.2016, 19:54
Re: Checkpoint help - by Sascha - 27.01.2016, 07:00
Re: Checkpoint help - by N0FeaR - 27.01.2016, 08:42
Re: Checkpoint help - by Sascha - 27.01.2016, 14:50
Re: Checkpoint help - by N0FeaR - 27.01.2016, 16:29
Re: Checkpoint help - by Sascha - 28.01.2016, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)