Small Script Problem!! (rep++)
#1

Hey Guys!
~~I want to convert mu cmds from strcmp to zcmd. But i don't know how to?? Can any one help?? That what to write and where to put this??
Reply
#2

Quote:
Originally Posted by iOmar
Посмотреть сообщение
Hey Guys!
~~I want to convert mu cmds from strcmp to zcmd. But i don't know how to?? Can any one help?? That what to write and where to put this??
Post your command, so I can help you
Reply
#3

pawn Код:
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x008000FF,"<========Server Rules========>");
SendClientMessage(playerid, 0xFF0000FF,"1- Don't Kill Team Mates");
SendClientMessage(playerid, 0xFF0000FF,"2- Spawnkilling is Not Allowed");
SendClientMessage(playerid, 0xFF0000FF,"3- Respect Admins/Players");
SendClientMessage(playerid, 0xFF0000FF,"4- Drive-By isn't Allowed");
SendClientMessage(playerid, 0xFF0000FF,"5- Hacks of Any kind isn't Allowed");
SendClientMessage(playerid, 0x008000FF,"====>Breaking These Rules Can Cause You Ban");
return 1;
}
Reply
#4

For a command without any additional params. This is the default syntax using zcmd!
pawn Код:
CMD:rules(playerid, params[])
    {
SendClientMessage(playerid, 0x008000FF,"<========Server Rules========>");
SendClientMessage(playerid, 0xFF0000FF,"1- Don't Kill Team Mates");
SendClientMessage(playerid, 0xFF0000FF,"2- Spawnkilling is Not Allowed");
SendClientMessage(playerid, 0xFF0000FF,"3- Respect Admins/Players");
SendClientMessage(playerid, 0xFF0000FF,"4- Drive-By isn't Allowed");
SendClientMessage(playerid, 0xFF0000FF,"5- Hacks of Any kind isn't Allowed");
SendClientMessage(playerid, 0x008000FF,"====>Breaking These Rules Can Cause You Ban");
return 1;
}
Reply
#5

On top of Mode:
pawn Код:
#include <zcmd>
Command :
pawn Код:
CMD:rules(playerid,params[])
{
SendClientMessage(playerid, 0x008000FF,"<========Server Rules========>");
SendClientMessage(playerid, 0xFF0000FF,"1- Don't Kill Team Mates");
SendClientMessage(playerid, 0xFF0000FF,"2- Spawnkilling is Not Allowed");
SendClientMessage(playerid, 0xFF0000FF,"3- Respect Admins/Players");
SendClientMessage(playerid, 0xFF0000FF,"4- Drive-By isn't Allowed");
SendClientMessage(playerid, 0xFF0000FF,"5- Hacks of Any kind isn't Allowed");
SendClientMessage(playerid, 0x008000FF,"====>Breaking These Rules Can Cause You Ban");
return 1;
}
Reply
#6

pawn Код:
CMD:rules(playerid)
{
    SendClientMessage(playerid, 0x008000FF,"<========Server Rules========>");
    SendClientMessage(playerid, 0xFF0000FF,"1- Don't Kill Team Mates");
    SendClientMessage(playerid, 0xFF0000FF,"2- Spawnkilling is Not Allowed");
    SendClientMessage(playerid, 0xFF0000FF,"3- Respect Admins/Players");
    SendClientMessage(playerid, 0xFF0000FF,"4- Drive-By isn't Allowed");
    SendClientMessage(playerid, 0xFF0000FF,"5- Hacks of Any kind isn't Allowed");
    SendClientMessage(playerid, 0x008000FF,"====>Breaking These Rules Can Cause You Ban");
    return true;
}
Reply
#7

Do you guys need to repost the same thing i just posted? Stop Spamming threads Please!
Reply
#8

where to put it?? Can it be put in onplayercmd??
Reply
#9

Quote:
Originally Posted by iOmar
Посмотреть сообщение
where to put it?? Can it be put in onplayercmd??
No, do not need ZCMD Public.
Reply
#10

so where to put it?? In which section??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)