Antifall bugs. -
LeeXian99 - 27.03.2013
Well, in this CMD, it has a problem with AntiFall, when a player teleport to there, they will get back to their vehicle, how to fix it?
AntiFall = "Act[playerid]"
pawn Код:
CMD:hayclimb(playerid,params[])
{
SetPlayerPos(playerid, -1806.1652832031,531.43103027344,36.003524780273);
SendClientMessage(playerid, 0x00FF00, "Welcome to Hayclimb.");
new name[MAX_PLAYER_NAME+1], string[128];
GetPlayerName(playerid, name, sizeof (name));
format (string, sizeof(string), "[TP]: %s has teleported to /hayclimb.", name);
SendClientMessageToAll (green, string);
return 1;
}
Re: Antifall bugs. -
SilverKiller - 27.03.2013
Create this..
Then in your hayclimb cmd, add :
And in the HayClimb CMD :
pawn Код:
if(Block[playerid] == 1)
{
Act[playerid] = 0;
return 1;
}
And if you want to block antifall in other commands just add a new thing and do the things like what i said..
I'm not sure if this will work but give it a try
Re: Antifall bugs. -
LeeXian99 - 28.03.2013
Bump.
The code above me, I have tried but it's not working.
Re: Antifall bugs. -
LeeXian99 - 29.03.2013
BUMP, I really need your help.
Re: Antifall bugs. -
greentarch - 29.03.2013
change g_antifall to the var you use.
pawn Код:
stock SetPlayerPos2(playerid, Float:X, Float:Y, Float:Z) {
if (g_antifall[playerid]) {
g_antifall[playerid] = false;
SetTimerEx("af_on", 100, false, "i", playerid);
}
SetPlayerPos(playerid, X, Y, Z);
return true;
}
#define SetPlayerPos SetPlayerPos2
forward af_on(playerid);
public af_on(playerid) {
return g_antifall[playerid] = true,
true;
}
add it somewhere in the script, I prefer below the line where you create var's ( I used that on my server )
Re: Antifall bugs. -
LeeXian99 - 29.03.2013
Quote:
Originally Posted by greentarch
change g_antifall to the var you use.
pawn Код:
stock SetPlayerPos2(playerid, Float:X, Float:Y, Float:Z) { if (g_antifall[playerid]) { g_antifall[playerid] = false; SetTimerEx("af_on", 100, false, "i", playerid); } SetPlayerPos(playerid, X, Y, Z); return true; }
#define SetPlayerPos SetPlayerPos2
forward af_on(playerid); public af_on(playerid) { return g_antifall[playerid] = true, true; }
add it somewhere in the script, I prefer below the line where you create var's ( I used that on my server )
|
It doesn't work.
Re: Antifall bugs. -
newbienoob - 29.03.2013
You mean, teleport with vehicle?
Re: Antifall bugs. -
LeeXian99 - 29.03.2013
No, teleport with vehicle is added, just teleporting to there without exiting vehicle, it works when I disabled antifall, but it has a problem like teleporting back to vehicle after I go somewhere the teleport doesn't support the tp with vehicles.