new testecheck; new testecheck2; new testecheck3; if (strcmp("/testcheck", cmdtext, true, 10) == 0) { GameTextForPlayer(playerid, "Vocк Precisa Pegar as Cargas!", 5000, 1); testecheck = SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0); return 1; } public OnPlayerEnterCheckpoint(playerid) { DisablePlayerCheckpoint(playerid); if (IsPlayerInCheckpoint(testecheck)) { GameTextForPlayer(playerid, "Vocк Precisa entregar as Cargas!", 5000, 1); testecheck2 = SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0); } if (IsPlayerInCheckpoint(testecheck2)) { GameTextForPlayer(playerid, "Vocк completou a entrega retorne a empresa!", 5000, 1); testecheck3 = SetPlayerCheckpoint(playerid, 1129.7092,-1563.1699,13.5464,20.0); } if (IsPlayerInCheckpoint(testecheck3)) { GameTextForPlayer(playerid, "Vocк completou a sua entrega!", 5000, 1); GivePlayerMoney(playerid,1000); } return 1; } |
DisablePlayerCheckpoint(playerid)
new pegar; new entregar; new voltar; if (strcmp("/testcheck", cmdtext, true, 10) == 0) { GameTextForPlayer(playerid, "Vocк Precisa Pegar as Cargas!", 5000, 1); pegar = SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0); return 1; } public OnPlayerEnterCheckpoint(playerid) { if (IsPlayerInCheckpoint(pegar)) { GameTextForPlayer(playerid, "Vocк Precisa entregar as Cargas!", 5000, 1); entregar = SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0); } if (IsPlayerInCheckpoint(entregar)) { GameTextForPlayer(playerid, "Vocк completou a entrega retorne a empresa!", 5000, 1); voltar = SetPlayerCheckpoint(playerid, 1129.7092,-1563.1699,13.5464,20.0); } if (IsPlayerInCheckpoint(voltar)) { GameTextForPlayer(playerid, "Vocк completou a sua entrega!", 5000, 1); GivePlayerMoney(playerid,1000); } return 1; } sу que nгo ta dando seguimento .. quando eu uso /testcheck mostra o checkpoint "PEGAR" certo, dai quando eu pego ele me manda pegar o "ENTREGAR" sу que nesse entregar nгo ta mostrando o caminho para o "voltar" tico e teco estгo meio ruins hoje :P acho que da pra entender mais ou menos o que eu expliquei aew ^^ alguem sabe me dizer o pq de nгo ta funfando certo ? |
new kP, kE, kV;
//OnPlayerCommandText
if( !strcmp( cmdtext, "/testcheck", true ) )
{
GameTextForPlayer( playerid, "Voce precisa pegar as cargas!", 5000, 1 );
kP = SetPlayerCheckpoint( playerid, 2620.7441, -2226.8093, 13.3810, 20.0 );
return true;
}
public OnPlayerEnterCheckpoint( playerid )
{
if( IsPlayerInCheckpoint( kP ) )
{
GameTextForPlayer( playerid, "Voce precisa entregar as cargas!", 5000, 1 );
DisablePlayerCheckpoint( kP );
kE = SetPlayerCheckpoint(playerid, 2620.7441, -2226.8093, 13.3810, 20.0 );
return true;
}
if( IsPlayerInCheckpoint( kE ) )
{
GameTextForPlayer( playerid, "Voce completou a entrega. Retorne a empresa", 5000, 1 );
DisablePlayerCheckpoint( kE );
kV = SetPlayerCheckpoint( playerid, 1129.7092, -1563.1699, 13.5464,20.0 );
return true;
}
if( IsPlayerInCheckpoint( kV ) )
{
GameTextForPlayer( playerid, "Voce completou a sua entrega", 5000, 1 );
DisablePlayerCheckpoint( kV );
GivePlayerMoney( playerid, 1000 );
return true;
}
return true;
}
//topo do GM
new Cp[MAX_PLAYERS];
if (strcmp("/testcheck", cmdtext, true, 10) == 0)
{
GameTextForPlayer(playerid, "Vocк Precisa Pegar as Cargas!", 5000, 1);
SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0);
Cp[playerid] = 1;
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Cp[playerid] == 1)
{
DisablePlayerCheckpoint(playerid) ;
GameTextForPlayer(playerid, "Vocк Precisa entregar as Cargas!", 5000, 1);
SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0);
Cp[playerid] = 2;
}
else if (Cp[playerid] == 2)
{
DisablePlayerCheckpoint(playerid) ;
GameTextForPlayer(playerid, "Vocк completou a entrega retorne a empresa!", 5000, 1);
SetPlayerCheckpoint(playerid, 1129.7092,-1563.1699,13.5464,20.0);
Cp[playerid] == 3
}
if (Cp[playerid] == 3)
{
DisablePlayerCheckpoint(playerid) ;
GameTextForPlayer(playerid, "Vocк completou a sua entrega!", 5000, 1);
GivePlayerMoney(playerid,1000);
Cp[playerid] = 0;
}
return 1;
}
if(strcmp("/testcheck",cmdtext,true,10)==0)
{
GameTextForPlayer(playerid, "Vocк Precisa Pegar as Cargas!", 5000, 1);
SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2620.7441,-2226.8093,13.3810))
{
GameTextForPlayer(playerid, "Vocк Precisa entregar as Cargas!", 5000, 1);
SetPlayerCheckpoint(playerid, 2620.7441,-2226.8093,13.3810,20.0);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2620.7441,-2226.8093,13.3810))
{
GameTextForPlayer(playerid, "Vocк completou a entrega retorne a empresa!", 5000, 1);
SetPlayerCheckpoint(playerid, 1129.7092,-1563.1699,13.5464,20.0);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1129.7092,-1563.1699,13.5464))
{
GameTextForPlayer(playerid, "Vocк completou a sua entrega!", 5000, 1);
GivePlayerMoney(playerid,1000);
}
return 1;
}