can someone give me pm - 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)
+--- Thread: can someone give me pm (
/showthread.php?tid=398727)
can someone give me pm -
DerickClark - 10.12.2012
i wanna make a /pm [id]
texting in privte.
Re: can someone give me pm -
Ironboy - 10.12.2012
http://forum.sa-mp.com/showthread.ph...rivate+message
Re: can someone give me pm -
DerickClark - 10.12.2012
can i use it with out zcmd?
Re: can someone give me pm -
dannyk0ed - 11.12.2012
Better start learning ZCMD and sscanf now
pawn Код:
CMD:pm(playerid, params[])
{
new PID, reason[35], pName[MAX_PLAYER_NAME], Sender[MAX_PLAYER_NAME];
if(sscanf(params, "uz", PID, reason)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /PM < PlayerID > < Message >");
if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, 0xFF0000FF, "That user is not connected!");
else
{
new Str[128];
GetPlayerName(PID, pName, sizeof(pName));
GetPlayerName(playerid, Sender, sizeof(Sender));
format(Str, sizeof(Str), "PM From: %s(%d): %s", Sender, playerid, reason);
SendClientMessage(PID, COLOR_YELLOW, Str);
format(Str, sizeof(Str), "PM To: %s(%d): %s", pName, PID, reason);
SendClientMessage(playerid, COLOR_YELLOW, Str);
}
return 1;
}
Re: can someone give me pm -
DerickClark - 11.12.2012
ZCMD keep blocking my commands if i put zcmd...don't khow why.
Re: can someone give me pm -
Steven82 - 11.12.2012
Quote:
Originally Posted by DerickClark
ZCMD keep blocking my commands if i put zcmd...don't khow why.
|
You can't have any STRCMP like commands unless put under a callback that has been created with ZCMD.