How to fix this ???
#1

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;
  }
Reply
#2

I don't even see SetPlayerHealth(playerid,Float:health);
Reply
#3

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
Reply
#4

Sry wrong understanded ^^
Got it

MFG Bearfist
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)