[Ajuda] Player e kickado quando descarrega! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Player e kickado quando descarrega! (
/showthread.php?tid=626751)
Player e kickado quando descarrega! -
Pequeno - 19.01.2017
Olб estou com um problema e nгo estou conseguindo arrumar!
Meu servidor de truck esta com um bug que estб kickado o player apуs descarregar!
Suspeito q seja todos os IDS pois testei o id 1 e 0 e estб kickado os dois...
Alguem pode Ajudar??
Re: Player e kickado quando descarrega! -
RazorGuigo - 19.01.2017
verifique as identificaзхes das dialogs .-.
Re: Player e kickado quando descarrega! -
Pequeno - 19.01.2017
Quote:
Originally Posted by RazorGuigo
verifique as identificaзхes das dialogs .-.
|
Nгo achei nada .--.
Re: Player e kickado quando descarrega! -
IlanZ - 19.01.2017
Mostre o code
Re: Player e kickado quando descarrega! -
Pequeno - 19.01.2017
Qual Code .-.
Programando e Relaxando! -
RazorGuigo - 19.01.2017
Quote:
Originally Posted by Pequeno
Nгo achei nada .--.
|
vo sabe do que eu falei?
Re: Programando e Relaxando! -
Pequeno - 19.01.2017
Quote:
Originally Posted by RazorGuigo
vo sabe do que eu falei?
|
Sou meio novo em pawn entгo nгo .. '--
Re: Player e kickado quando descarrega! -
IlanZ - 19.01.2017
O code de descarregamento
Re: Player e kickado quando descarrega! -
Pequeno - 19.01.2017
Quote:
Originally Posted by IlanZ
O code de descarregamento
|
Код:
Trucker_EndJob(playerid)
{
if (APlayerData[playerid][JobStarted] == true)
{
// Clear the Mafia-wanted status of the vehicle (or trailer) in the array "AVehicleData"
if (APlayerData[playerid][TrailerID] == 0)
AVehicleData[APlayerData[playerid][VehicleID]][MafiaLoad] = false; // The player has no trailer, so clear his main vehicle as wanted by the mafia
else
AVehicleData[APlayerData[playerid][TrailerID]][MafiaLoad] = false; // The player has a trailer, so clear his trailer as wanted by the mafia
// Clear all data about the job from the player, so he can start a new one
APlayerData[playerid][JobStarted] = false;
APlayerData[playerid][JobStep] = 0;
APlayerData[playerid][JobID] = 0;
APlayerData[playerid][VehicleTimerTime] = 0;
APlayerData[playerid][VehicleID] = 0;
APlayerData[playerid][TrailerID] = 0;
APlayerData[playerid][LoadID] = 0;
APlayerData[playerid][JobLoc1] = 0;
APlayerData[playerid][JobLoc2] = 0;
APlayerData[playerid][MafiaLoad] = false;
// Delete the checkpoint
DisablePlayerCheckpoint(playerid);
// Reset the missiontext
TextDrawSetString(APlayerData[playerid][MissionText], Trucker_NoJobText);
// Kill the LoadingTimer
KillTimer(APlayerData[playerid][LoadingTimer]);
// Check if the player has been overloaded
if (APlayerData[playerid][Overloaded] == true)
{
// Clear the overloaded status of the player
APlayerData[playerid][Overloaded] = false;
// Check if the player has a wanted level of 2 or higher
if (GetPlayerWantedLevel(playerid) >= 2)
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) - 2); // Reduce the wanted level by 2
else
SetPlayerWantedLevel(playerid, 0); // If the player has a wanted level of less than 2, reset the wanted level to 0
}
}
return 1;
}
Isso? '--' ;-;
Programando e Gambiarrando! -
RazorGuigo - 19.01.2017
Quote:
Originally Posted by Pequeno
Sou meio novo em pawn entгo nгo .. '--
|
entгo dis que nгo sabe .-.
Manda o Code de quando descarrega a carga entre
[ PHP] ...code... [ /PHP]