[Ajuda] Warning no meu gamemode - 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] Warning no meu gamemode (
/showthread.php?tid=386152)
Sistema de corda -
Vinicius_TroLL - 19.10.2012
Eu coloquei um comando mais a corda nao aparece
comando
Код:
if(strcmp(cmd, "/corda", true) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497)
{
Sliding[playerid] = 1;
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Slide", 400, 0, "i", playerid);
SendClientMessage(playerid, COLOR_WHITE, "Voce esta descendo do helicуptero, use /pararcorda bem proximo ao chгo!");
}
else
{
SendClientMessage(playerid,-1, "{FF0000}[ERRO] Vocк nгo esta em um Helicуptero!");
}
return 1;
}
++rep pra quem ajuda
Re: Warning no meu gamemode -
GReeN_WOoD - 19.10.2012
PHP код:
if(strcmp(cmd, "/corda", true) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497)
{
Sliding[playerid] = 1;
RemovePlayerFromVehicle(playerid); // Remove o jogador do veiculo
TogglePlayerControllable(playerid, 0); //Congela o jogador
SetTimerEx("Slide", 400, 0, "i", playerid); //Settimer de 400 ms
SendClientMessage(playerid, COLOR_WHITE, "Voce esta descendo do helicуptero, use /pararcorda bem proximo ao chгo!"); //Mensagem para o jogador
}
else
{
SendClientMessage(playerid,-1, "{FF0000}[ERRO] Vocк nгo esta em um Helicуptero!");
}
return 1;
}
Cade o Objeto da corda ? creio que ja vi este codigo em um FilterScript que nao funciona.
Re: Warning no meu gamemode -
Schocc - 19.10.2012
Poste a callback
public Slide
Re: Warning no meu gamemode -
Vinicius_TroLL - 19.10.2012
Код:
public Slide(playerid)
{
if(Sliding[playerid] == 1)
{
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z - 5.00);
SetTimerEx("Slide", 1000, 0, "i", playerid);
}
return 1;
}
Re: Warning no meu gamemode -
Delete_ - 19.10.2012
Й lуgico que nгo vai aparecer, vc n crio a corda.
Re: Warning no meu gamemode -
Vinicius_TroLL - 19.10.2012
Eu nгo criei, peguei um codigo pronto...allguem sabe como coloca?