SA-MP Forums Archive
PM script - 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: PM script (/showthread.php?tid=365590)



PM script - Sl1mShady - 03.08.2012

Just give me a PM script, I don't use ZCMD or DCMD or anykind of these unknown things xD


Re: PM script - Sl1mShady - 03.08.2012

any1


Re: PM script - doreto - 03.08.2012

Quote:
Originally Posted by Sl1mShady
Посмотреть сообщение
Just give me a PM script, I don't use ZCMD or DCMD or anykind of these unknown things xD
NO go learn yourself,try deffend ways or if you are too lazy post here Script Request Thread


Re: PM script - Dev. - 03.08.2012

if u need u can find from luxadmin download that FS and u can find


Respuesta: PM script - HarlemSAMP - 03.08.2012

Here's a basic PM script made in ZCMD:

pawn Код:
CMD:pm(playerid,params[])
{
        new pid;
        new message[128];
        if(sscanf(params, "us[32]", pid, message))
        {
            return SendClientMessage(playerid, COLOR_GREY, "USAGE: /pm <playerid> <message>");
        }
         if(!IsPlayerConnected(pid))
            return SendClientMessage(playerid, COLOR_GREY, "ERROR: Player is not connected!");

        new pmsg[256];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(pmsg,sizeof(pmsg),"PM from %s(%d): %s",pname,playerid,message);

        new pidmsg[256];
        new pidname[MAX_PLAYER_NAME];
        GetPlayerName(pid,pidname,sizeof(pidname));
        format(pidmsg,sizeof(pidmsg),"PM to %s(%d): %s",pidname,pid,message);
        SendClientMessage(pid, COLOR_ORANGE, pmsg);
        PlayerPlaySound(pid,1057,0.0,0.0,0.0);
        SendClientMessage(playerid, COLOR_ORANGE, pidmsg);

    return 1;
}



Re: PM script - Sl1mShady - 03.08.2012

tell me how to put ZCMD, cuz i said i dont use it, please.


Respuesta: Re: PM script - HarlemSAMP - 03.08.2012

Quote:
Originally Posted by Sl1mShady
Посмотреть сообщение
tell me how to put ZCMD, cuz i said i dont use it, please.
That's just a basic PM code, just convert it to strcmd and it should be fine, add it OnPlayerCommandText callback and it should work fine, i won't do all the job as you need to learn basic pawn scripting.

Hope you got the idea.


Re: PM script - [MM]RoXoR[FS] - 03.08.2012

Quote:
Originally Posted by Sl1mShady
Посмотреть сообщение
tell me how to put ZCMD, cuz i said i dont use it, please.
Download ZCMD from here.

Go to your directory, where your server is

Like for me
Код:
F:\server\pawno\include
and put that file there.

In your GM script add
pawn Код:
#include <ZCMD>



Respuesta: PM script - HarlemSAMP - 03.08.2012

NOTE: if half of your code is made on Strcmd and you do as RoXor said, your script will have a conflict and won't work, i suggest you to convert the code i gave you to strcmd, if you know how to change from strcmd to zcmd then do as RoXor said, if not then do not do it


Re: PM script - SEnergy - 03.08.2012

serverfolder/filterscripts/baseaf.pwn