forward GCPT(playerID);
public GCPT(playerID)
{
return checkpointType[playerCheckpoint[playerID]];
}
#define GCPT(%0) (checkpointType[playerCheckpoint[(%0)]])
forward GCPT(playerID);
public GCPT(playerID)
{
return checkpointType[playerCheckpoint[playerID]];
}
if(GCPT(playerid) != SpGp)
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
forward GCPT(playerID);
public GCPT(playerID)
{
return checkpointType[playerCheckpoint[playerID]];
}
if(GCPT(playerid) != "SpGp")
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
SpGp = CreateDynamicCP(2174.5442, 90.5050, 29.2097,2,-1,-1,-1,100);
forward GCPT(playerID);
public GCPT(playerID)
{
return checkpointType[playerCheckpoint[playerID]];
}
if(GCPT(playerid) != SpGp)
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
return 1;
}
forward GCPT(playerID);
SpGp = CreateDynamicCP(2174.5442, 90.5050, 29.2097,2,-1,-1,-1,100);
public GCPT(playerID)
{
return checkpointType[playerCheckpoint[playerID]];
}
public GiveMoneySpawnTok(playerid,params[])
{
#pragma unused params
new string[128];
if(GCPT(playerid) != SpGp)
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
.
.
.
.
.
.
return 1;
}
if(checkpointid != SpGp)
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
if(!IsPlayerInDynamicCP(playerid, SpGp))
{
SendClientMessage(playerid,COLOR_ERROR,"Test");
return 1;
}
|
You don't need GCPT in Streamer
pawn Код:
|