My questions here. (please have a look here, this will be updated frequently) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My questions here. (please have a look here, this will be updated frequently) (
/showthread.php?tid=122701)
Re: Kill players when they are lower then "Z.Z" -
llama - 23.01.2010
Ahh.. no they aren't the same.
for that one it would be:
pawn Code:
if(IsPlayerLuxAdm(playerid))
Re: Kill players when they are lower then "Z.Z" -
[dN]Eagle - 23.01.2010
I am using Lethal Admin now, way better and it isn't a complete copy of another admin script like Lux Admin is...
Thanks for your help, if I need more help I'll post here again
Re: Kill players when they are lower then "Z.Z" -
[dN]Eagle - 23.01.2010
EDIT:
Correct code!
Code:
public OnPlayerText(playerid, text[])
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(text[0] == '!' && text[1] != 0)
{
GetPlayerName( playerid, playername, MAX_PLAYER_NAME );
format( string, 128, "[Team] %s: %s", playername, text[1] );
for(new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected(i) && gTeam[playerid] == gTeam[i] )
SendClientMessage( i, COLOR_TEAMCHAT, string );
}
return 0;
}
return 1;
}
This is working!
Re: Kill players when they are lower then "Z.Z" -
llama - 23.01.2010
Code:
mijnscript.pwn(309) : error 017: undefined symbol "cmd"
mijnscript.pwn(313) : error 017: undefined symbol "sendername"
mijnscript.pwn(313) : error 017: undefined symbol "sendername"
mijnscript.pwn(313) : error 029: invalid expression, assumed zero
mijnscript.pwn(313) : fatal error 107: too many error messages on one line
On line 309 change the cmd's to cmdtext.
Above GetPlayerName add:
Else, that other one should work just fine.
Re: I'll post my questions here (former topic : the kill players.... then "Z.Z") -
[dN]Eagle - 23.01.2010
Alright so basicly when my friend tries to hit me on the map I've created I can't loose health, is this due gravity?
His video :
http://www.xfire.com/video/1f77cf/
My video :
http://www.xfire.com/video/1f77db/
Is this due to gravity or something? Help is really appreciated.
Quote:
|
Originally Posted by llama
Code:
mijnscript.pwn(309) : error 017: undefined symbol "cmd"
mijnscript.pwn(313) : error 017: undefined symbol "sendername"
mijnscript.pwn(313) : error 017: undefined symbol "sendername"
mijnscript.pwn(313) : error 029: invalid expression, assumed zero
mijnscript.pwn(313) : fatal error 107: too many error messages on one line
On line 309 change the cmd's to cmdtext.
Above GetPlayerName add:
Else, that other one should work just fine.
|
I changed the post, read it.