[DUV] Definiзхes? - 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: [DUV] Definiзхes? (
/showthread.php?tid=147256)
[DUV] Definiзхes? -
BurrodaZero - 11.05.2010
POST EDITADO PARA NAO HAVER MAIS UM!
Seguinte Quero Saber Algumas Diferenзas de
GET -> SET?
SetTimerEx -> SetTimer
playerid -> i
OnGameModeInit -> OnFilterScriptInit
Re: [DUV] Ahh Ele Continua Banindo -
SuB_ZeRo0_ - 11.05.2010
pawn Код:
public ANTISPECHACK(playerid)
{
if(IsPlayerAdmin(playerid))//SE FOR ADMIN NAO BANE
new playerState = GetPlayerState(playerid);
if (playerState == PLAYER_STATE_SPECTATING)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return 0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s(%d) foi Banido por Spec Hack.",name,playerid);
SendClientMessageToAll(VERMELHO, string);
Ban(playerid);
}
return 1;
}
Nгo entendi o:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return 0; {...}
Tenta esse ai que eu fiz.
Re: [DUV] Ahh Ele Continua Banindo -
russo666 - 11.05.2010
Acordei agora e estou todo zarolho, mas acho que no admin por exemplo tens que meter '!' para negar. Ou seja, para nao verificar admins. E devias usar o IsPlayerConnected + tipo if !IsPlayerAdmin || Getvehiclemodel bla bla bla.
Re: [DUV] Ahh Ele Continua Banindo -
BurrodaZero - 11.05.2010
Nada Disso, o erro que que ao Apertar "g" no hydra ele nгo vai para Carona e Sim Da SPEC NO HYDRA
Olhem
pawn Код:
if (GetVehicleModel(PlayerHydra[playerid]) == 520)
{
new vehicleid = PlayerHydra[playerid];
if (IsInHydra[playerid] == true)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
TogglePlayerSpectating(playerid, false);//EM MODO SPEC
new Float:X,Float:Y,Float:Z,Float:A;
GetVehiclePos(vehicleid, X, Y, Z);//POS
GetVehicleZAngle(vehicleid, A);//PEGARA ANGULO HYDRA
X += (2 * floatsin(-A, degrees));
Y += (2 * floatcos(-A, degrees));
SetPlayerPos(playerid, X, Y, Z);
X += (2 * floatsin(-(A-45.0), degrees));
Y += (2 * floatcos(-(A-45.0), degrees));
SetPlayerPos(playerid, X, Y, Z);//SETARA POS
SetPlayerFacingAngle(playerid, A);
SetCameraBehindPlayer(playerid);
IsInHydra[playerid] = false;
PlayerHydra[playerid] = 0;