cant match the acess to the checkpoints.Please
#1

hey, i want to when a cop enter the checkpoint happens something i know, but i cant match the if isacop or if isaterrorist...

help me or teach me how to do it.


thanks, i will +rep


Код:
public OnPlayerEnterCheckpoint(playerid)
{

	if gTeam[playerid] = POLICE
	   {
         
		SetPlayerCheckpoint(playerid, -1632.6051, 653.5886, -5.5494, 3.0);
		return 1;
       }
     if gTeam[playerid] = TERRORIST
	   {
		SetPlayerCheckpoint(playerid, -1476.3080, 430.1486, 6.1100, 3.0);
		return 1;
       }


   /* GivePlayerMoney(playerid, 100);
    DisablePlayerCheckpoint(playerid);
    */
    
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{

      if(gTeam[playerid] == POLICE)
      {
            SetPlayerCheckpoint(playerid, -1632.6051, 653.5886, -5.5494, 3.0);
            return 1;
      }
      if(gTeam[playerid] == TERRORIST)
      {
            SetPlayerCheckpoint(playerid, -1476.3080, 430.1486, 6.1100, 3.0);
            return 1;
      }
That shall be fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)