Um, Weird?
#1

Hey, This is rather weird. I have made my own command but ingame it just says wrong command O.o
Reply
#2

Are you sure the cmd was typed right in the FS, and or GM? Make sure there are no grammatical errors in the script, that can dramatically affect your Command...
Reply
#3

Quote:
Originally Posted by Angel_Martorell
Посмотреть сообщение
Are you sure the cmd was typed right in the FS, and or GM? Make sure there are no grammatical errors in the script, that can dramatically affect your Command...
Its all right..
Reply
#4

Did you 'return 1;'?
Reply
#5

Add, TO the End off the Ccommand Before the ending barracks.

Код:
 return 1;
Reply
#6

Hmm Making a command

1. Copy this code

Код:
#include <a_samp>
 
#define FILTERSCRIPT
 
#define G 0x99FF9900
#define R 0xAA3333AA
 
public OnFilterScriptInit()
{
   print("\n-----------------------------------------");
   print("Help Help Help The Gay Raper");
   print("MuHaHa I will Lick your ass!!!!!!____________");
   print("-------------------------------------------\n");
 
 
   return 1;
}
 
public OnFilterScriptExit()
{
   return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp(cmdtext,"/rules",true)==0)
   {
   SendClientMessage(playerid,R,"_------Your Server Name Rules----_");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,G,"Your rule Here");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,G,"Your Rule Here");
   SendClientMessage(playerid,R,"_--------------------------------_");
   return 1;
   }
   return 0;
}
2. Go on your pwn compliter and paste it there then save it. Anywhere you want after that compile it then Add it in your FilterScripts folder then add the name of it on the filterscripts line (Example: filterscripts NameofIt
Reply
#7

My CMD looks like this :
pawn Код:
dcmd_adarmy(playerid,params[]) {
    new ID;
    if(sscanf(params,"u",ID)) return SendClientMessage(playerid,0xA70000FF,"/adarmy ID");
    ArmyRights[ID] =1;
    return true;
}

dcmd_adswat(playerid,params[]) {
    new ID;
    if(sscanf(params,"u",ID)) return SendClientMessage(playerid,0xA70000FF,"/adswat ID");
    SwatRights[ID] =1;
    return true;
}
dcmd_adNCIS(playerid,params[]) {
    new ID;
    if(sscanf(params,"u",ID)) return SendClientMessage(playerid,0xA70000FF,"/adNCIS ID");
    NCISRights[ID] =1;
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)