help me converting this
#1

can someone help me converting this to cmd: (not command: but cmd

https://pastebin.com/raw/mXzGuj31




okey i just fucked english up- rest in peace
sorry
Reply
#2

What are you talking about? That filterscript, gamemode, or whatever it is, has the include of ZCMD in use, it's commands are defined as both:
Quote:
CMD
COMMAND
It's got no different effect.
Reply
#3

Quote:
Originally Posted by Meller
Посмотреть сообщение
What are you talking about? That filterscript, gamemode, or whatever it is, has the include of ZCMD in use, it's commands are defined as both:


It's got no different effect.
okey please help me when i load this fs server commands stops working and only the fs commands works
Reply
#4

Quote:
Originally Posted by BadJih
Посмотреть сообщение
okey please help me when i load this fs server commands stops working and only the fs commands works
You tell me why you commented away:
PHP код:
//#define FILTERSCRIPT 
It was there for a good reason, so that the ZCMD can be a proccessor in both the gamemode and the static filterscript.
Reply
#5

Quote:
Originally Posted by Meller
Посмотреть сообщение
You tell me why you commented away:
PHP код:
//#define FILTERSCRIPT 
It was there for a good reason, so that the ZCMD can be a proccessor in both the gamemode and the static filterscript.
what to do bro ? i didnt understood you ! when i load the fs commands of the gamemode stops and only the fs ones works how to fix that
Reply
#6

Quote:
Originally Posted by BadJih
Посмотреть сообщение
what to do bro ? i didnt understood you ! when i load the fs commands of the gamemode stops and only the fs ones works how to fix that
I just explained to you what's causing that, uncomment the second line in your code and then compile the PAWN code, run the filterscript and it'll work splendidly.
Reply
#7

PHP код:
//CALLSIGN FILTERSCRIPT
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define COLOR_ORANGE 0xFF9500FF
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" CALLSIGN SCRIPT DAVMAN");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    new 
veh GetPlayerVehicleID(playerid);
    
Delete3DTextLabel(veicolo_callsign_testo[veh]);
    
veicolo_callsign_status[veh] = 0;
    return 
1;
}
//******VARIABILI******//
new Text3D:veicolo_callsign_testo[MAX_VEHICLES];
new 
veicolo_callsign_status[MAX_VEHICLES];
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
SendClientMessage(playerid,COLOR_ORANGE,"INFO: {FFFFFF}This server use Callsign Filterscript Davman");
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    new 
veh GetPlayerVehicleID(playerid);
    
Delete3DTextLabel(veicolo_callsign_testo[veh]);
    
veicolo_callsign_status[veh] = 0;
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    new 
veh GetPlayerVehicleID(vehicleid);
    
Delete3DTextLabel(veicolo_callsign_testo[veh]);
    
veicolo_callsign_status[veh] = 0;
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
#pragma tabsize 0
COMMAND:callsign(playerid,params[])
{
    new 
veh GetPlayerVehicleID(playerid);
    if(
IsPlayerInAnyVehicle(playerid))
    {
          if(
isnull(params)) return SendClientMessage(playerid,COLOR_ORANGE,"INFO: {FFFFFF}/callsign [text]");
        if(!
veicolo_callsign_status[veh])
        {
        new 
string[128];
        
format(string,sizeof(string), "%s",params);
           
veicolo_callsign_testo[veh] = Create3DTextLabel(string0xFFFFFFFF0.00.00.050.001);
           
Attach3DTextLabelToVehicleveicolo_callsign_testo[veh], veh, -0.7, -1.9, -0.3);
           
veicolo_callsign_status[veh] = 1;
          }
          else
          {
          
Delete3DTextLabel(veicolo_callsign_testo[veh]);
        
veicolo_callsign_status[veh] = 0;
        return 
1;
            }
        }
        else
        {
        
SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle");
        return 
1;
        }
    return 
1;
}
COMMAND:deletecallsign(playerid,params[])
{
    new 
veh GetPlayerVehicleID(playerid);
    if(
IsPlayerInAnyVehicle(playerid))
    {
        
Delete3DTextLabel(veicolo_callsign_testo[veh]);
        
veicolo_callsign_status[veh] = 0;
    }
    else
    {
    
SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle");
    }
    return 
1;

Idk, try this?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)