Lol'd, why the fuck did I say 0xFFFF equals to -1 (but I thought it was), I'll just stfu next time, so Calgon won't come here and start flaming
![]() |
stock GetPlayerInt(playerid, &interior)
interior = GetPlayerInterior(playerid);
// normal
new int = GetPlayerInterior(playerid);
// your function
new int;
GetPlayerInt(playerid, int);
Where are you using that function? I think you have to write "more" code for that.
pawn Код:
|
new myVar;
public something()
{
myVar = GetPlayerInterior(playerid);
}
// His method
new myVar;
public something()
{
GetPlayerInt(playerid, myVar);
}
stock LIFE(playerid, &Float:lifelife)
return GetPlayerHealth(playerid, lifelife);
life life
pawn Код:
![]() |
stock GetPlayerLife(playerid,Float:life) { GetPlayerHealth(playerid,life); return life; }
LMAO FAkeandgaysh*tnoob FAILED
Код:
stock GetPlayerLife(playerid,Float:life) { GetPlayerHealth(playerid,life); return life; } |
#define MAX_DEAD_ARENAS 5
new ArenaEnabled[MAX_DEAD_ARENAS];
SwitchDeathCheck(daid, amount) //amount: 0 = disabled, 1 = enabled
{
ArenaEnabled[daid] = amount;
if(amount > 2)
{
printf("[VDA]Deatharena id: %d has an outstanding parameter (%d), please fix this...", daid, amount);
SendRconCommand("exit"); //Closes the server safely
}
}
SetDeathCheck(daid, playerid, Float: z)
{
new Float: x, Float: y, Float: pz;
if(ArenaEnabled[daid] == 1)
{
GetPlayerPos(playerid, x, y, pz);
if(pz < z-0.1) //Check player if is under our general float z.
{
SetPlayerHealth(playerid, 0.0); //Killing the player who is lower then the general float z.
}
}
}
public OnFilterScriptInit()
{
print("\n- Create-A-Death-Arena script by Vandooz");
SwitchDeathCheck(0, 1); //Death Arena nr.1 is now enabled
return 1;
}
public OnPlayerUpdate(playerid) //Doesnt have to be onplayerupdate, just call in a 1 sec timer
{
SetDeathCheck(0, playerid, 1000.0); //DONT DO GETPLAYERPOS, because its a general float for checks only.
return 1;
}
stock sortWords(words[][], A_to_Z, size = sizeof(words))
{
for(new x; x != size - 1; ++x)
{
for(new y = x; y != size; ++y)
{
if((!A_to_Z) ? (strcmp(words[x], words[y]) < 0) : (strcmp(words[x], words[y]) > 0))
{
new
string[16]
;
format(string, sizeof(string), words[x]);
format(words[x], sizeof(string), words[y]);
format(words[y], sizeof(string), string);
}
}
}
return 1;
}
new
names[][16] =
{
"Benjamin",
"Andreas",
"Ryan",
"Jason",
"Michael",
"Brad",
"Dean",
"Thomas",
"Alex",
"Ashley",
"Lovely",
"Carl",
"Johnattan",
"Macy",
"Vanessa",
"Eddy",
"Curtis",
"Alan",
"Lacy",
"Faith",
"Dianna",
"Esmee",
"Glenn",
"Jordy",
"Yasmin",
"Tracy",
"Zena",
"Wendy"
}
;
sortWords(names, 1);
for(new i; i != sizeof(names); ++i)
{
printf("%s", names[i]);
}
Alan
Alex
Andreas
Ashley
Benjamin
Brad
Carl
Curtis
Dean
Dianna
Eddy
Esmee
Faith
Glenn
Jason
Johnattan
Jordy
Lacy
Lovely
Macy
Michael
Ryan
Thomas
Tracy
Vanessa
Wendy
Yasmin
Zena
Zena
Yasmin
Wendy
Vanessa
Tracy
Thomas
Ryan
Michael
Macy
Lovely
Lacy
Jordy
Johnattan
Jason
Glenn
Faith
Esmee
Eddy
Dianna
Dean
Curtis
Carl
Brad
Benjamin
Ashley
Andreas
Alex
Alan
stock IsIP(const str[], bool:port = false) // By LeePL { for(new cIP[2]; cIP[0] != strlen(str); cIP[0]++) { switch(str[cIP[0]]) { case '.', ' ', ':', ',', '*', '/', ';', '\\', '|' : continue; case '0' .. '9': cIP[1]++; default: cIP[1] = 0; } if((port == false) && (cIP[1] == 8)) { new strex[8]; strmid(strex, str, cIP[0] - 7, cIP[0]); if(IsNumeric(strex)) return 0; return 1; } if((port == true) && (cIP[1] == 12)) { new strex[12]; strmid(strex, str, cIP[0] - 11, cIP[0]); if(IsNumeric(strex)) return 0; return 1; } } return 0; }
stock IsPlayerAlive(playerid)
return GetPVarInt(playerid, "Alive");