/pm help? :D - 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: /pm help? :D (
/showthread.php?tid=168620)
/pm help? :D -
Kevin_Joshen - 16.08.2010
Hey guys…..
Sorry for this nub-ish question… but… could someone make me a /pm script? One with a /r command as well.. (which would respond to the person who last /pm ed them.
Sorry for this. But it can’t be a filterscipt, I have tried using a few.. maybe if someone has one in their server they could just throw it my way?
Thanks.
-Kevin
Re: /pm help? :D -
Kevin_Joshen - 16.08.2010
lol... just read the other post on something similar to this... but i need it to have /r as well.
Re: /pm help? :D -
Steven82 - 16.08.2010
dude don't double post!!
Re: /pm help? :D -
Kayla.S - 16.08.2010
This is what you want.
https://sampforum.blast.hk/showthread.php?tid=152328
Re: /pm help? :D -
Kevin_Joshen - 16.08.2010
Quote:
Originally Posted by Steven82
dude don't double post!!
|
sorry! dang.
Quote:
Originally Posted by Kayla.S
|
i was already using this.. but it clashes with something in my gamemode.. and sometimes crashes the server.
that is why i was requesting no FS's.. 'cause you never know what they could do to your GM.
Re: /pm help? :D -
Mike_Peterson - 16.08.2010
base.pwn has /ban, /pm, /kick, copy /pm from it, done
Re: /pm help? :D -
gamer931215 - 17.08.2010
Well if you maybe can get it to work... you can use mine
http://forum.sa-mp.com/showthread.ph...254#post796254
Re: /pm help? :D -
Toni - 17.08.2010
https://sampforum.blast.hk/showthread.php?tid=164500
.
Re: /pm help? :D -
PotH3Ad - 17.08.2010
Here, just for you :P, should work if I didn't fuck up somewhere...
pawn Код:
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "LastPM", -1);
return 1;
}
CMD:pm(playerid, params[])
{
new target, msg[128];
if(sscanf(params, "us", target, msg)) return SendClientMessage(playerid, 0xFAFAFAA, "USAGE: /pm <playerid/name> <text>");
else if(target == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFAFAFAA, "ERROR: Player Not Found");
new str[128];
format(str, sizeof(str), "PM from %s(%d): %s", pName(playerid), playerid, msg);
SendClientMessage(target, 0xFAFAFAA, str);
SendClientMessage(target, 0xFAFAFAA, "Type \"/r <text>\"" to reply.");
format(str, sizeof(str), "PM sent to %s.", pName(target));
SendClientMessage(playerid, 0xFAFAFAA, str);
return 1;
}
CMD:r(playerid, params[])
{
new msg[128];
if(sscanf(params, "s", msg)) return SendClientMessage(playerid, 0xFAFAFAA, "USAGE: /r <text>");
else if(GetPVarInt(playerid, "LastPM") == -1) return SendClientMessage(playerid, 0xFAFAFAA, "ERROR: No one has sent you a PM!");
new str[128];
format(str, sizeof(str), "PM from %s(%d): %s", pName(playerid), playerid, msg);
SendClientMessage(GetPVarInt(playerid, "LastPM"), 0xFAFAFAA, str);
return 1;
}
Re: /pm help? :D -
Kevin_Joshen - 17.08.2010
Thanks guys! I used GarPM and just transfered it into my script for my servers.
@PotH3ad
After I saw that you did that for me, I used yours.. (just for YOU!!
)