SA-MP Forums Archive
Um, Weird? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Um, Weird? (/showthread.php?tid=322556)



Um, Weird? - Vasu99 - 02.03.2012

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


Re: Um, Weird? - Angel_Martorell - 02.03.2012

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...


Re: Um, Weird? - Vasu99 - 02.03.2012

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..


Re: Um, Weird? - Deal-or-die - 03.03.2012

Did you 'return 1;'?


Re: Um, Weird? - GtasaPoliceModz - 03.03.2012

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

Код:
 return 1;



Re: Um, Weird? - [Cali]ChrOnic_T - 03.03.2012

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


Re: Um, Weird? - Vasu99 - 03.03.2012

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;
}