PM script
#1

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

any1
Reply
#3

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
Reply
#4

if u need u can find from luxadmin download that FS and u can find
Reply
#5

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;
}
Reply
#6

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

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.
Reply
#8

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>
Reply
#9

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
Reply
#10

serverfolder/filterscripts/baseaf.pwn
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)