How to fix this ??? - 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: How to fix this ??? (
/showthread.php?tid=74447)
How to fix this ??? -
Bearfist - 22.04.2009
when i played on my server with my bro and we both tipping my godmode ... the client shows:
markus is a god ... when i tipped /god
markus is a god no more ... when another person tipped god ...o.O
...here's my command
Код:
if(strcmp(cmdtext,"/god",true)==0)
{
if(God[playerid] == 0)
{
God[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,"GODMODE ON");
GetPlayerName(playerid,name5,sizeof(name5));
format(string,sizeof(string),"%s is a God",name5);
SendClientMessageToAll(COLOR_BLUE,string);
}
else
{
God[playerid] = 0;
SendClientMessage(playerid,COLOR_RED,"GODMODE OFF");
SetPlayerHealth(playerid, 100);
format(string,sizeof(string),"%s is a God no more",name5);
SendClientMessageToAll(COLOR_BLUE,string);
}
return 1;
}
Re: How to fix this ??? -
HB - 22.04.2009
I don't even see SetPlayerHealth(playerid,Float:health);
Re: How to fix this ??? -
Nero_3D - 22.04.2009
Quote:
Originally Posted by иєσz
I don't even see SetPlayerHealth(playerid,Float:health);
|
Maybe he use a timer...
And to your main problem, you forgot to get the name, you just get it if he gets godlike but not if you remove his godlike status
Re: How to fix this ??? -
Bearfist - 22.04.2009
Sry wrong understanded ^^
Got it
MFG Bearfist
Re: How to fix this ??? -
Nero_3D - 22.04.2009
Quote:
Originally Posted by Bearfist
it only the problem that the server can't make a difference between
2 or more Players..
MFG Bearfist
|
sure it makes, i said whats the problem is...
Quote:
Originally Posted by ♣ ⓐⓢⓢ
And to your main problem, you forgot to get the name, you just get it if he gets godlike but not if you remove his godlike status
|