/AFK - 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: /AFK (
/showthread.php?tid=70434)
/AFK -
sidhu123 - 24.03.2009
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!**
Re: /AFK -
Rks25 - 24.03.2009
you defined function PlayerName? and what needs to be added more?
Re: /AFK -
sidhu123 - 24.03.2009
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?
Re: /AFK -
Rks25 - 24.03.2009
no it is a public function. Check from the script where you copied it.
Re: /AFK -
MenaceX^ - 24.03.2009
pawn Код:
PlayerName(playerid)
{
new n[24];
GetPlayerName(playerid,n,24);
return n;
}
Re: /AFK -
tom_jonez - 24.03.2009
http://pastebin.com/m58b400e3
that will work i think
Re: /AFK -
sidhu123 - 24.03.2009
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
Re: /AFK -
Rks25 - 24.03.2009
should be opposite way Tom, you are forgetting to do AFK[playerid] = 1; and 0;
Re: /AFK -
tom_jonez - 24.03.2009
fixed:
http://pastebin.com/m58b400e3 sorry
Re: /AFK -
sidhu123 - 24.03.2009
Quote:
|
Originally Posted by tom_jonez
|
Errors.