Help With Simple Deathmatch Script
#21

Code:
#include <a_samp>

#define FILTERSCRIPT

#define messagecolor 0x99FF9900
#define red 0xFF0000AA

forward loadobjects();

public OnFilterScriptInit()
{
    print("\n-----------------------------------------");
    print(" Call Of Duty SA-MP Los Santos DeathMatch");
    print("-------------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lsdm", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            SetPlayerPos(playerid,1203.6621,-2037.0355,69.0078);
            SendClientMessage(playerid,0x00FF00FF,"You have been teleported");
        }
        return 1;
    }

    return 0;
}

public loadobjects()
{
    CreateObject(3092, 1235.0999755859, -2042, 61, 0, 0, 0);
    CreateObject(1437, 1123.3000488281, -2033.5999755859, 68.900001525879, 0, 0, 0);
    CreateObject(13011, 1124.5, -2038.3000488281, 70.599998474121, 0, 0, 0);
    CreateObject(12987, 1125.1999511719, -2037.5999755859, 72.699996948242, 0, 0, 0);
    CreateObject(1559, 1122.4000244141, -2036.5999755859, 69.900001525879, 0, 0, 0);
    CreateObject(1225, 1175.6999511719, -2038.8000488281, 68.5, 0, 0, 0);
    CreateObject(1225, 1175.3000488281, -2034.9000244141, 68.5, 0, 0, 0);
    CreateObject(1225, 1174.9000244141, -2035, 69.300003051758, 0, 0, 0);
    CreateObject(1225, 1175.3000488281, -2038.9000244141, 69.5, 0, 0, 0);
    CreateObject(3267, 1172.3000488281, -2037, 68, 0, 0, 0);
    CreateObject(3515, 1162.1999511719, -2044.9000244141, 70, 0, 0, 0);
    CreateObject(3524, 1163.5999755859, -2032.8000488281, 70.900001525879, 0, 0, 0);
    CreateObject(3524, 1186.5999755859, -2041.1999511719, 70.900001525879, 0, 0, 0);
    CreateObject(7388, 1186.9000244141, -2030.8000488281, 68, 0, 0, 0);
    CreateObject(3515, 1174.3000488281, -2006.5999755859, 70, 0, 0, 0);
    CreateObject(9833, 1174.1999511719, -2068.3000488281, 71.199996948242, 0, 0, 0);
    CreateObject(7073, 1095.9000244141, -2036.1999511719, 99.900001525879, 0, 0, 0);
    CreateObject(1242, 1183, -2072.8999023438, 68.199996948242, 0, 0, 0);
    return 1;
}
Reply
#22

i cant see my objects
Reply
#23

Code:
#include <a_samp>

#define FILTERSCRIPT

#define messagecolor 0x99FF9900
#define red 0xFF0000AA

public OnFilterScriptInit()
{
    print("\n-----------------------------------------");
    print(" Call Of Duty SA-MP Los Santos DeathMatch");
    print("-------------------------------------------\n");
    CreateObject(3092, 1235.0999755859, -2042, 61, 0, 0, 0);
    CreateObject(1437, 1123.3000488281, -2033.5999755859, 68.900001525879, 0, 0, 0);
    CreateObject(13011, 1124.5, -2038.3000488281, 70.599998474121, 0, 0, 0);
    CreateObject(12987, 1125.1999511719, -2037.5999755859, 72.699996948242, 0, 0, 0);
    CreateObject(1559, 1122.4000244141, -2036.5999755859, 69.900001525879, 0, 0, 0);
    CreateObject(1225, 1175.6999511719, -2038.8000488281, 68.5, 0, 0, 0);
    CreateObject(1225, 1175.3000488281, -2034.9000244141, 68.5, 0, 0, 0);
    CreateObject(1225, 1174.9000244141, -2035, 69.300003051758, 0, 0, 0);
    CreateObject(1225, 1175.3000488281, -2038.9000244141, 69.5, 0, 0, 0);
    CreateObject(3267, 1172.3000488281, -2037, 68, 0, 0, 0);
    CreateObject(3515, 1162.1999511719, -2044.9000244141, 70, 0, 0, 0);
    CreateObject(3524, 1163.5999755859, -2032.8000488281, 70.900001525879, 0, 0, 0);
    CreateObject(3524, 1186.5999755859, -2041.1999511719, 70.900001525879, 0, 0, 0);
    CreateObject(7388, 1186.9000244141, -2030.8000488281, 68, 0, 0, 0);
    CreateObject(3515, 1174.3000488281, -2006.5999755859, 70, 0, 0, 0);
    CreateObject(9833, 1174.1999511719, -2068.3000488281, 71.199996948242, 0, 0, 0);
    CreateObject(7073, 1095.9000244141, -2036.1999511719, 99.900001525879, 0, 0, 0);
    CreateObject(1242, 1183, -2072.8999023438, 68.199996948242, 0, 0, 0);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lsdm", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            SetPlayerPos(playerid,1203.6621,-2037.0355,69.0078);
            SendClientMessage(playerid,0x00FF00FF,"You have been teleported");
        }
        return 1;
    }

    return 0;
}
saves memory i think by not making a new useless public and u can see your objects
Reply
#24

i love ya lol
lol its working thank you so much
Reply
#25

press the star plz i want some rep been a long time since i had some xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)