#1

hi
when i write the cmd it shows Unknown command plz help

CMD:SniperDm(playerid, params[])
{
CreateObject(16141, -1963.63586, 1945.29285, -8.25611, -18.53997, 40.08002, 0.00000);
CreateObject(16139, -1971.25903, 1952.98706, 1.19485, -1.26000, 2.76000, 0.00000);
CreateObject(16139, -2007.85266, 1939.87280, 1.19485, -1.26000, 2.76000, -6.54000);
CreateObject(16139, -2044.19861, 1927.72827, 1.19485, -1.26000, 2.76000, 0.00000);
CreateObject(16139, -2078.15308, 1911.79236, 1.19485, -1.26000, 2.76000, 0.00000);
CreateObject(16139, -2119.53711, 1891.72144, 1.19485, -1.26000, 2.76000, 41.28000);
CreateObject(16139, -2122.70459, 1874.84070, -6.06841, -1.26000, 2.76000, -142.14026);
CreateObject(16139, -2094.89404, 1766.33813, 0.75585, -1.26000, 2.76000, -84.72007);
CreateObject(16139, -1904.16785, 1870.34692, 1.19485, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1897.83948, 1827.87024, 1.19485, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1888.47009, 1790.18896, -2.40591, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1873.89368, 1755.47510, 1.19485, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1863.33008, 1717.29382, 1.19485, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1884.25171, 1695.70325, 1.19485, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -1919.28931, 1684.43835, -2.75634, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -1953.77417, 1670.42688, -2.54146, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -1991.59375, 1663.71814, 1.19485, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -2029.08301, 1661.50195, 1.19485, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -2066.83105, 1654.74268, 1.19485, -1.26000, 2.76000, -181.14000);
CreateObject(16139, -2096.72656, 1738.00989, -1.45558, -1.26000, 2.76000, -263.58005);
CreateObject(16139, -2082.08447, 1695.82239, 1.19485, -1.26000, 2.76000, -268.49997);
CreateObject(16139, -2089.99707, 1738.76575, -3.52815, -1.26000, 2.76000, -267.36002);
CreateObject(16139, -2121.62036, 1812.18311, -3.78550, -1.26000, 2.76000, -262.79965);
CreateObject(16139, -2122.55200, 1849.37097, -6.06841, -1.26000, 2.76000, -85.56039);
CreateObject(18848, -1876.68091, 1737.51440, 17.54072, 0.00000, 0.00000, 0.00000);
CreateObject(18848, -1995.13977, 1697.37231, 16.94650, 0.00000, 0.00000, 0.00000);
CreateObject(11011, -1905.15283, 1733.05847, 4.92093, 0.00000, 0.00000, -162.66006);
CreateObject(11011, -1968.19910, 1903.16052, 5.93256, 0.00000, 0.00000, -3.83999);
CreateObject(11088, -2014.24500, 1827.52856, 7.26832, 0.00000, 0.00000, 12.18001);
CreateObject(7515, -2091.41235, 1822.08411, 6.72290, 0.00000, 0.00000, -75.78000);
CreateObject(4242, -1994.89160, 1797.67456, 1.50885, 0.00000, 0.00000, 17.58000);
CreateObject(16139, -2117.58789, 1813.51025, -3.78550, -1.26000, 2.76000, -262.79965);
CreateObject(3279, -2100.12622, 1863.18848, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -2036.34265, 1876.26306, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -1932.33252, 1831.39514, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -1917.75830, 1717.93542, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -1994.69238, 1697.69336, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -2054.04639, 1699.25208, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -2083.42285, 1783.63318, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -2011.12231, 1770.76794, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(3279, -2054.19263, 1815.13489, 1.37740, 0.00000, 0.00000, 0.00000);
CreateObject(11428, -2020.26208, 1700.57813, 7.17016, 0.00000, 0.00000, -81.00003);
CreateObject(11428, -1945.74304, 1725.13953, 7.17016, 0.00000, 0.00000, -81.00003);
CreateObject(11428, -2005.42346, 1895.79309, 7.17016, 0.00000, 0.00000, -261.23987);
CreateObject(11428, -2070.30273, 1878.23584, 7.17016, 0.00000, 0.00000, -261.23987);
CreateObject(11440, -1924.44690, 1802.56274, 1.44103, 0.00000, 0.00000, 25.67999);
CreateObject(11440, -2041.75024, 1751.92175, 1.44103, 0.00000, 0.00000, 195.89996);
CreateObject(11445, -1991.96362, 1732.60071, 1.43369, 0.00000, 0.00000, 0.00000);
CreateObject(11445, -2052.81323, 1775.27930, 1.71175, 0.00000, 0.00000, 0.00000);
CreateObject(2985, -2041.41089, 1751.88916, 4.51033, 0.00000, 0.00000, 0.00000);
CreateObject(2985, -2038.39026, 1744.06970, 7.52260, 0.00000, 0.00000, 0.00000);
CreateObject(2985, -1925.36218, 1804.52881, 4.50376, 0.00000, 0.00000, -70.02000);
CreateObject(2985, -1928.66284, 1810.72510, 7.48397, 0.00000, 0.00000, -135.23999);
CreateObject(3271, -1963.29736, 1769.16833, 4.97308, 0.00000, 0.00000, 13.62000);
CreateObject(3271, -2056.13306, 1735.50574, 1.32003, 0.00000, 0.00000, 13.62000);
CreateObject(3794, -2036.36316, 1750.59851, 1.87801, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2036.47351, 1752.21655, 1.87801, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2036.66052, 1753.80530, 1.87801, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2037.07227, 1755.58960, 1.87801, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2026.87610, 1794.11560, 2.41006, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2029.45068, 1814.38831, 2.41006, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -2013.65588, 1798.26367, 2.41006, 0.00000, 0.00000, 0.00000);
CreateObject(3794, -1986.08545, 1811.46521, 2.41006, 0.00000, 0.00000, 0.00000);
CreateObject(16139, -1916.92883, 1889.40430, -3.29334, -1.26000, 2.76000, -86.99999);
CreateObject(16139, -1936.82080, 1922.95996, -3.29334, -1.26000, 2.76000, -86.99999);
SetPlayerPos(playerid, -1994.5323,1698.4924,18.4555);
SendClientMessage(playerid, COLOR_BLUE, "[DM-Info]: you joined sniper DM!");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 34, 99999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);

return 1;
}
Reply
#2

Do you have include zcmd?
And did you add this:
pawn Code:
#include <zcmd>
Reply
#3

It's because you're capitilazing the command itself, that won't work with ZCMD.

Try this:

pawn Code:
CMD:sniperdm(playerid, params[])
{
    CreateObject(16141, -1963.63586, 1945.29285, -8.25611, -18.53997, 40.08002, 0.00000);
    CreateObject(16139, -1971.25903, 1952.98706, 1.19485, -1.26000, 2.76000, 0.00000);
    CreateObject(16139, -2007.85266, 1939.87280, 1.19485, -1.26000, 2.76000, -6.54000);
    CreateObject(16139, -2044.19861, 1927.72827, 1.19485, -1.26000, 2.76000, 0.00000);
    CreateObject(16139, -2078.15308, 1911.79236, 1.19485, -1.26000, 2.76000, 0.00000);
    CreateObject(16139, -2119.53711, 1891.72144, 1.19485, -1.26000, 2.76000, 41.28000);
    CreateObject(16139, -2122.70459, 1874.84070, -6.06841, -1.26000, 2.76000, -142.14026);
    CreateObject(16139, -2094.89404, 1766.33813, 0.75585, -1.26000, 2.76000, -84.72007);
    CreateObject(16139, -1904.16785, 1870.34692, 1.19485, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1897.83948, 1827.87024, 1.19485, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1888.47009, 1790.18896, -2.40591, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1873.89368, 1755.47510, 1.19485, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1863.33008, 1717.29382, 1.19485, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1884.25171, 1695.70325, 1.19485, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -1919.28931, 1684.43835, -2.75634, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -1953.77417, 1670.42688, -2.54146, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -1991.59375, 1663.71814, 1.19485, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -2029.08301, 1661.50195, 1.19485, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -2066.83105, 1654.74268, 1.19485, -1.26000, 2.76000, -181.14000);
    CreateObject(16139, -2096.72656, 1738.00989, -1.45558, -1.26000, 2.76000, -263.58005);
    CreateObject(16139, -2082.08447, 1695.82239, 1.19485, -1.26000, 2.76000, -268.49997);
    CreateObject(16139, -2089.99707, 1738.76575, -3.52815, -1.26000, 2.76000, -267.36002);
    CreateObject(16139, -2121.62036, 1812.18311, -3.78550, -1.26000, 2.76000, -262.79965);
    CreateObject(16139, -2122.55200, 1849.37097, -6.06841, -1.26000, 2.76000, -85.56039);
    CreateObject(18848, -1876.68091, 1737.51440, 17.54072, 0.00000, 0.00000, 0.00000);
    CreateObject(18848, -1995.13977, 1697.37231, 16.94650, 0.00000, 0.00000, 0.00000);
    CreateObject(11011, -1905.15283, 1733.05847, 4.92093, 0.00000, 0.00000, -162.66006);
    CreateObject(11011, -1968.19910, 1903.16052, 5.93256, 0.00000, 0.00000, -3.83999);
    CreateObject(11088, -2014.24500, 1827.52856, 7.26832, 0.00000, 0.00000, 12.18001);
    CreateObject(7515, -2091.41235, 1822.08411, 6.72290, 0.00000, 0.00000, -75.78000);
    CreateObject(4242, -1994.89160, 1797.67456, 1.50885, 0.00000, 0.00000, 17.58000);
    CreateObject(16139, -2117.58789, 1813.51025, -3.78550, -1.26000, 2.76000, -262.79965);
    CreateObject(3279, -2100.12622, 1863.18848, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -2036.34265, 1876.26306, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -1932.33252, 1831.39514, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -1917.75830, 1717.93542, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -1994.69238, 1697.69336, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -2054.04639, 1699.25208, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -2083.42285, 1783.63318, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -2011.12231, 1770.76794, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(3279, -2054.19263, 1815.13489, 1.37740, 0.00000, 0.00000, 0.00000);
    CreateObject(11428, -2020.26208, 1700.57813, 7.17016, 0.00000, 0.00000, -81.00003);
    CreateObject(11428, -1945.74304, 1725.13953, 7.17016, 0.00000, 0.00000, -81.00003);
    CreateObject(11428, -2005.42346, 1895.79309, 7.17016, 0.00000, 0.00000, -261.23987);
    CreateObject(11428, -2070.30273, 1878.23584, 7.17016, 0.00000, 0.00000, -261.23987);
    CreateObject(11440, -1924.44690, 1802.56274, 1.44103, 0.00000, 0.00000, 25.67999);
    CreateObject(11440, -2041.75024, 1751.92175, 1.44103, 0.00000, 0.00000, 195.89996);
    CreateObject(11445, -1991.96362, 1732.60071, 1.43369, 0.00000, 0.00000, 0.00000);
    CreateObject(11445, -2052.81323, 1775.27930, 1.71175, 0.00000, 0.00000, 0.00000);
    CreateObject(2985, -2041.41089, 1751.88916, 4.51033, 0.00000, 0.00000, 0.00000);
    CreateObject(2985, -2038.39026, 1744.06970, 7.52260, 0.00000, 0.00000, 0.00000);
    CreateObject(2985, -1925.36218, 1804.52881, 4.50376, 0.00000, 0.00000, -70.02000);
    CreateObject(2985, -1928.66284, 1810.72510, 7.48397, 0.00000, 0.00000, -135.23999);
    CreateObject(3271, -1963.29736, 1769.16833, 4.97308, 0.00000, 0.00000, 13.62000);
    CreateObject(3271, -2056.13306, 1735.50574, 1.32003, 0.00000, 0.00000, 13.62000);
    CreateObject(3794, -2036.36316, 1750.59851, 1.87801, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2036.47351, 1752.21655, 1.87801, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2036.66052, 1753.80530, 1.87801, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2037.07227, 1755.58960, 1.87801, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2026.87610, 1794.11560, 2.41006, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2029.45068, 1814.38831, 2.41006, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -2013.65588, 1798.26367, 2.41006, 0.00000, 0.00000, 0.00000);
    CreateObject(3794, -1986.08545, 1811.46521, 2.41006, 0.00000, 0.00000, 0.00000);
    CreateObject(16139, -1916.92883, 1889.40430, -3.29334, -1.26000, 2.76000, -86.99999);
    CreateObject(16139, -1936.82080, 1922.95996, -3.29334, -1.26000, 2.76000, -86.99999);
    SetPlayerPos(playerid, -1994.5323,1698.4924,18.4555);
    SendClientMessage(playerid, COLOR_BLUE, "[DM-Info]: you joined sniper DM!");
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 34, 99999);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    return 1;
}
Reply
#4

ohh change the SniperDm to sniperdm do not use big letters!
nevermind turn allready fixed it!
Reply
#5

ty all it works +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)