How to check if player is online?
#1

i create a i love you system for my server. but the problem is everytime i say
i love you xenia, it says Sweet! "Server-Owner Heinz tell xenia i love you" i want to
know how to check if she is online. here is the code onplayertext

pawn Код:
if(!strcmp(text, "i love you xenia", true))
    {
       if(!strcmp(pname, "Heinz", true))
       {
          format(string, sizeof(string), "Server-Owner %s has tell xenia i love you", pname);
          SendClientMessageToAll(COLOR_GREEN, string);
          printf(string);
          GameTextForPlayer(playerid, "~g~Sweet!", 2000, 3);
       }
       else
       {
          format(string, sizeof(string), "%s(ID: %d) has been banned for telling xenia i love you", pname, playerid);
          SendClientMessageToAll(COLOR_RED, string);
          GameTextForPlayer(playerid, "~r~Shutup!", 2000, 3);
          BanEx(playerid, "Fuck-off");
       }
       return 0;
    }
-Heinz
Reply


Messages In This Thread
How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:02
Re: How to check if player is online? - by nmader - 12.02.2012, 03:05
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:06
Re: How to check if player is online? - by Nuke547 - 12.02.2012, 03:06
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:06
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:08
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:10
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:12
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:36
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:46

Forum Jump:


Users browsing this thread: 3 Guest(s)