Can somebody convert this?
#1

Hey I am editing one filterscript and I want to convert these commands to zcmd:
Command 1
pawn Код:
if( strcmp( cmdtext, "/goldrrims", true) == 0 )
                {
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
                AddVehicleComponent(GetPlayerVehicleID(playerid),1080);
                SendClientMessage(playerid, 0xFFFFFFFF, "You have added Gold Rims to your vehicle.");
                return 1;
                }
Command 2
pawn Код:
if( strcmp( cmdtext, "/cutterrims", true) == 0 )
                {
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
                AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
                SendClientMessage(playerid, 0xFFFFFFFF, "You have added Cutter Rims to your vehicle.");
                return 1;
                }
Command 3
pawn Код:
if( strcmp( cmdtext, "/siren1", true) == 0 )
                {
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
                AddVehicleComponent(GetPlayerVehicleID(playerid),18646, 10.0, 10.0, 10.0, 0, 0, 0);
                SendClientMessage(playerid, 0xFFFFFFFF, "You have added [0.3d] Sirens.");
                return 1;
                }
Command 4
pawn Код:
if( strcmp( cmdtext, "/siren2", true) == 0 )
                {
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
                AddVehicleComponent(GetPlayerVehicleID(playerid),19419, 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
                SendClientMessage(playerid, 0xFFFFFFFF, "You have added [0.3e] Sirens.");
                return 1;
                }
              return 0;
Reply


Messages In This Thread
Can somebody convert this? - by Smokkr - 03.09.2012, 12:04
Re: Can somebody convert this? - by Misiur - 03.09.2012, 12:06
Re: Can somebody convert this? - by [HK]Ryder[AN] - 03.09.2012, 12:06
Re: Can somebody convert this? - by Smokkr - 03.09.2012, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)