#1

Hey hey!... [SAP]Sidhu here.. I'm trying to make a little afk script. When the player types /afk, it sends everyone saying "[player] is now afk." When the person comes back and types /back, it sends everyone a message saying "[player] is back".

I'm new to using strings and stuff, so please go easy on me :P

Can anyone help me script it?, I have this so far..

Pastebin: http://pastebin.com/m62ad6678

Thanks.

**Note: my indentation was correct, pastebin messed it up!**
Reply
#2

you defined function PlayerName? and what needs to be added more?
Reply
#3

Quote:
Originally Posted by Rk_
you defined function PlayerName? and what needs to be added more?
Do I just put in #define PlayerName at the top?
Reply
#4

no it is a public function. Check from the script where you copied it.
Reply
#5

pawn Код:
PlayerName(playerid)
{
  new n[24];
  GetPlayerName(playerid,n,24);
  return n;
}
Reply
#6

http://pastebin.com/m58b400e3

that will work i think
Reply
#7

Quote:
Originally Posted by Rk_
no it is a public function. Check from the script where you copied it.
Lol.. The problem is, I didnt copy it.. I did it myself, but like I said before, I'm new to this. I only know small parts of the code that go in
Reply
#8

should be opposite way Tom, you are forgetting to do AFK[playerid] = 1; and 0;
Reply
#9

fixed:
http://pastebin.com/m58b400e3 sorry
Reply
#10

Quote:
Originally Posted by tom_jonez
http://pastebin.com/m2539e3a4

that will work i think
Errors.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)