Ayuda con mi game mode
#1

Bueno estoy con el game mode de mi server pero cada vez ue entro se conecta pero se cierra la conexiуn sola

aqui todo mi GM(sin acavar):
pawn Код:
#include <a_samp>
#pragma tabsize 0

#define yellow 0xFFFF00AA
#define red 0xFF0000AA

new Turismo;

#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Porta test script, test server         ");
    print("      66.85.141.87:7779                 ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    SetGameModeText("Porta Test Server GM");
    AddPlayerClass(2, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(3, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(4, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(5, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(6, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(7, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(8, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(9, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(10, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(11, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(12, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(13, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(14, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(15, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(16, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(17, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(18, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(19, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(20, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(21, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(22, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(23, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(24, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(25, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(26, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(27, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(28, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(29, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(30, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(31, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(32, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(33, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(34, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(35, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(36, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(37, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(38, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(39, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(40, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(41, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(42, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(43, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(44, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(45, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(46, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(47, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(48, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddPlayerClass(49, 212.616683, 1868.345214, 13.140625, 180, 9, 500, 26, 500, 32, 500);
    AddStaticVehicleEx(493,-1480.4000244,1400.5000000,0.0000000,0.0000000,37,37,15); //Jetmax
AddStaticVehicleEx(522,-1408.0000000,1965.9000244,50.5000000,286.0000000,76,117,15); //NRG-500
AddStaticVehicleEx(522,-1408.3000488,1968.4000244,50.5000000,282.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(522,-1407.8000488,1971.3000488,50.7000008,272.0000000,76,117,15); //NRG-500
AddStaticVehicleEx(522,-1408.4000244,1974.6999512,50.7999992,274.0000000,189,190,15); //NRG-500
AddStaticVehicleEx(522,-1410.5999756,1962.0000000,50.5000000,0.0000000,215,142,15); //NRG-500
AddStaticVehicleEx(522,-1407.8000488,1978.9000244,51.0000000,274.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(522,-1406.5000000,1981.6999512,51.2000008,270.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,-1408.3000488,1984.3000488,51.2000008,200.0000000,109,122,15); //NRG-500
AddStaticVehicleEx(587,-1386.9000244,1982.9000244,50.0999985,0.0000000,37,37,15); //Euros
AddStaticVehicleEx(602,-1386.1999512,1977.3000488,49.5999985,0.0000000,100,100,15); //Alpha
AddStaticVehicleEx(451,-1385.5000000,1971.1999512,49.0000000,0.0000000,123,10,15); //Turismo
AddStaticVehicleEx(411,-1385.4000244,1963.5999756,48.7000008,0.0000000,93,126,15); //Infernus
AddStaticVehicleEx(480,-1394.0000000,1982.8000488,50.5999985,168.0000000,42,119,15); //Comet
AddStaticVehicleEx(477,-1393.5000000,1963.4000244,49.4000015,0.0000000,98,11,15); //ZR-350
AddStaticVehicleEx(468,212.1999969,1859.9000244,12.8999996,0.0000000,215,142,15); //Sanchez
AddStaticVehicleEx(489,214.8000031,1858.5999756,13.3999996,358.0000000,214,218,15); //Rancher
AddStaticVehicleEx(506,222.1999969,1859.0000000,12.8999996,0.0000000,132,4,15); //Super GT
AddStaticVehicleEx(506,219.3999939,1859.3000488,12.8999996,0.0000000,77,98,15); //Super GT
AddStaticVehicleEx(521,223.6999969,1870.0000000,12.8000002,0.0000000,63,62,15); //FCR-900
AddStaticVehicleEx(522,221.5000000,1869.6999512,12.8000002,0.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(425,225.8000031,1890.6999512,18.6000004,0.0000000,95,10,15); //Hunter
AddStaticVehicleEx(425,203.1000061,1892.6999512,18.6000004,0.0000000,95,10,15); //Hunter
AddStaticVehicleEx(497,215.0000000,1932.1999512,23.5000000,0.0000000,-1,-1,15); //Police Maverick
AddStaticVehicleEx(497,203.3000031,1932.1999512,23.5000000,0.0000000,-1,-1,15); //Police Maverick
AddStaticVehicleEx(497,192.1999969,1932.3000488,23.5000000,0.0000000,-1,-1,15); //Police Maverick
AddStaticVehicleEx(468,198.0000000,1932.9000244,23.0000000,0.0000000,157,152,15); //Sanchez
AddStaticVehicleEx(468,209.8999939,1932.3000488,23.0000000,0.0000000,215,142,15); //Sanchez
AddStaticVehicleEx(508,271.1000061,1963.0999756,18.1000004,0.0000000,245,245,15); //Journey
AddStaticVehicleEx(508,271.3999939,1955.0999756,18.1000004,0.0000000,245,245,15); //Journey
AddStaticVehicleEx(508,275.5000000,1943.8000488,18.1000004,270.0000000,245,245,15); //Journey
AddStaticVehicleEx(440,280.2999878,1955.0999756,17.8999996,0.0000000,52,26,15); //Rumpo
AddStaticVehicleEx(482,280.5000000,1961.8000488,17.8999996,358.0000000,124,27,15); //Burrito
AddStaticVehicleEx(490,288.8999939,1967.5000000,18.0000000,0.0000000,-1,-1,15); //FBI Rancher
AddStaticVehicleEx(427,277.8999939,1968.3000488,17.8999996,276.0000000,-1,-1,15); //Enforcer
AddStaticVehicleEx(520,336.7999878,1812.6999512,18.7000008,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,347.9443359,1819.7041016,18.5509033,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,325.7000122,1822.0000000,18.6000004,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(488,358.6000061,1887.5999756,17.8999996,0.0000000,42,119,15); //News Chopper
AddStaticVehicleEx(488,364.8999939,1895.1999512,17.8999996,0.0000000,42,119,15); //News Chopper
AddStaticVehicleEx(488,378.2000122,1899.8000488,17.8999996,0.0000000,42,119,15); //News Chopper
AddStaticVehicleEx(476,315.6000061,1805.5999756,18.7999992,0.0000000,19,69,15); //Rustler
AddStaticVehicleEx(476,303.8999939,1805.8000488,18.7999992,0.0000000,19,69,15); //Rustler
AddStaticVehicleEx(587,250.5000000,1810.1999512,17.5000000,0.0000000,32,32,15); //Euros
AddStaticVehicleEx(587,242.1000061,1810.1999512,17.5000000,0.0000000,22,34,15); //Euros
AddStaticVehicleEx(587,234.1000061,1810.3000488,17.5000000,0.0000000,43,62,15); //Euros
AddStaticVehicleEx(587,227.3999939,1810.4000244,17.5000000,0.0000000,88,88,15); //Euros
AddStaticVehicleEx(587,221.3000031,1810.5999756,17.5000000,0.0000000,88,88,15); //Euros
AddStaticVehicleEx(601,191.1000061,1807.0999756,17.6000004,0.0000000,245,245,15); //S.W.A.T. Van
AddStaticVehicleEx(601,131.0000000,1807.4000244,17.6000004,0.0000000,245,245,15); //S.W.A.T. Van
AddStaticVehicleEx(558,187.1999969,1807.0999756,17.2999992,0.0000000,90,87,15); //Uranus
AddStaticVehicleEx(410,182.6000061,1806.4000244,17.3999996,0.0000000,94,112,15); //Manana
AddStaticVehicleEx(426,178.5000000,1806.1999512,17.6000004,0.0000000,102,28,15); //Premier
AddStaticVehicleEx(424,173.6000061,1805.3000488,17.5000000,0.0000000,245,245,15); //BF Injection
AddStaticVehicleEx(556,135.6000061,1806.6999512,16.6000004,356.0000000,245,245,15); //Monster A
AddStaticVehicleEx(557,141.1000061,1808.0000000,19.1000004,0.0000000,245,245,15); //Monster B
AddStaticVehicleEx(468,198.3000031,1872.5000000,17.3999996,0.0000000,157,152,15); //Sanchez
AddStaticVehicleEx(468,201.1999969,1872.6999512,17.3999996,0.0000000,157,152,15); //Sanchez
AddStaticVehicleEx(468,203.0000000,1872.4000244,17.3999996,0.0000000,22,34,15); //Sanchez
AddStaticVehicleEx(468,204.3000031,1872.5999756,17.3999996,0.0000000,157,152,15); //Sanchez
AddStaticVehicleEx(468,205.3999939,1872.5000000,17.3999996,0.0000000,22,34,15); //Sanchez
AddStaticVehicleEx(468,207.8999939,1872.6999512,17.3999996,0.0000000,22,34,15); //Sanchez
AddStaticVehicleEx(522,219.8000031,1872.5999756,17.2999992,0.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(522,221.6999969,1872.8000488,17.2999992,0.0000000,189,190,15); //NRG-500
AddStaticVehicleEx(522,223.5000000,1872.5999756,17.2999992,0.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(522,225.3000031,1872.4000244,17.2999992,0.0000000,215,142,15); //NRG-500
AddStaticVehicleEx(522,227.3999939,1872.4000244,17.2999992,0.0000000,76,117,15); //NRG-500
AddStaticVehicleEx(522,229.8000031,1872.5999756,17.2999992,0.0000000,215,142,15); //NRG-500
AddStaticVehicleEx(432,204.3000031,1878.5999756,17.6000004,274.0000000,95,10,15); //Rhino
AddStaticVehicleEx(432,225.5000000,1879.3000488,17.6000004,88.0000000,95,10,15); //Rhino
AddStaticVehicleEx(528,148.6000061,1932.4000244,19.2999992,0.0000000,-1,-1,15); //FBI Truck
AddStaticVehicleEx(528,155.0000000,1932.0999756,19.1000004,0.0000000,-1,-1,15); //FBI Truck
AddStaticVehicleEx(599,170.3000031,1930.5999756,18.7999992,0.0000000,-1,-1,15); //Police Ranger
AddStaticVehicleEx(599,176.1999969,1930.5999756,18.5000000,0.0000000,-1,-1,15); //Police Ranger
AddStaticVehicleEx(599,182.6999969,1930.3000488,18.2999992,0.0000000,-1,-1,15); //Police Ranger
AddStaticVehicleEx(545,99.6999969,1925.5000000,18.2000008,0.0000000,61,74,15); //Hustler
AddStaticVehicleEx(545,103.4000015,1925.0000000,18.2999992,0.0000000,34,25,15); //Hustler
AddStaticVehicleEx(545,99.0999985,1917.5999756,18.2000008,0.0000000,94,112,15); //Hustler
CreateObject(3524,-1515.5999756,1379.3000488,4.6999998,0.0000000,0.0000000,312.0000000); //object(skullpillar01_lvs) (1)
CreateObject(3524,-1512.4000244,1369.1999512,4.5999999,0.0000000,0.0000000,306.0000000); //object(skullpillar01_lvs) (2)
CreateObject(4247,-1353.4000244,1422.8000488,0.0000000,0.0000000,0.0000000,0.0000000); //object(sbsbed6law2) (1)
CreateObject(4206,-1419.5000000,1380.4000244,0.5000000,0.0000000,0.0000000,0.0000000); //object(pershingpool_lan) (1)
CreateObject(1337,-1349.0888672,2030.5849609,52.8122025,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (1)
CreateObject(10831,-1398.6999512,1972.6999512,54.2000008,0.0000000,0.0000000,0.0000000); //object(drydock3_sfse) (1)
CreateObject(7025,-1387.0000000,1953.0999756,51.7000008,0.0000000,0.0000000,0.0000000); //object(plantbox1) (1)
CreateObject(7025,-1410.4000244,1952.4000244,53.2000008,0.0000000,0.0000000,38.0000000); //object(plantbox1) (2)
CreateObject(8613,-1413.5999756,1970.6999512,54.2000008,0.0000000,0.0000000,0.0000000); //object(vgssstairs03_lvs) (1)
CreateObject(8613,1042.0000000,-319.3999939,77.4000015,0.0000000,0.0000000,0.0000000); //object(vgssstairs03_lvs) (2)
CreateObject(8148,1003.0999756,-352.7999878,75.1999969,0.0000000,0.0000000,0.0000000); //object(vgsselecfence02) (2)
CreateObject(8148,1084.0000000,-380.6000061,73.4000015,0.0000000,0.0000000,274.0000000); //object(vgsselecfence02) (3)
CreateObject(8148,1063.0000000,-277.5000000,76.0000000,0.0000000,0.0000000,270.0000000); //object(vgsselecfence02) (4)
CreateObject(1337,1195.4384766,-310.5761719,57.0274353,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (3)
CreateObject(8148,147.0000000,127.1999969,460.1000061,0.0000000,0.0000000,0.0000000); //object(vgsselecfence02) (5)
CreateObject(2929,286.2999878,1982.3000488,18.3999996,0.0000000,0.0000000,274.0000000); //object(a51_blastdoorl) (1)
CreateObject(2929,286.2000122,1986.3000488,18.3999996,0.0000000,0.0000000,270.0000000); //object(a51_blastdoorl) (2)
CreateObject(2929,286.2999878,1990.1999512,18.3999996,0.0000000,0.0000000,270.0000000); //object(a51_blastdoorl) (3)
CreateObject(2929,286.3999939,1994.0999756,18.3999996,0.0000000,0.0000000,270.0000000); //object(a51_blastdoorl) (4)
CreateObject(2929,286.6000061,1998.0999756,18.3999996,0.0000000,0.0000000,268.0000000); //object(a51_blastdoorl) (5)
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 213.65, 1871.28, 13.14);
    SetPlayerCameraPos(playerid, 213.65, 1871.28, 13.14);
    SetPlayerCameraLookAt(playerid, 213.65, 1871.28, 13.14);
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
    SendClientMessageToAll(yellow, "Se ha conectado %s");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 if(IsPlayerAdmin(playerid))
 {
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
    SendClientMessageToAll(red, "%s se ha desconectado");
 }
 else
 {
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
 }
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/comandos", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, yellow, "___________________Porta Test Comandos______________________");
        SendClientMessage(playerid, red, "Air Break: /airb = Activa y desactiva /airbs = velocidad ");
        SendClientMessage(playerid, red, "Mega Jump : /mjump = Activa y desactiva ar Jump          ");
        SendClientMessage(playerid, red, "CarJump: /cjump = Activa y desactiva Car Jump            ");
        SendClientMessage(playerid, red, "Car Speed: /cspeed = Activa y desactive Car Jump         ");
        SendClientMessage(playerid, red, "Volver a el Area51: /back = Volver a el Area 51         ");
        SendClientMessage(playerid, red, "Spawn Turismo: /vehicle = Crea un turismo a tu lado      ");
        SendClientMessage(playerid, yellow, "____________________________________________________________");
        return 1;
    }
   
    if (strcmp("/back", cmdtext, true, 10) == 0)
    {
        new string[128], nombre[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nombre, sizeof(nombre));
        SetPlayerPos(playerid, 212.616683, 1868.345214, 13.140625);
        format(string,sizeof(string), "%s, usted ha vuelto a Area 51.", nombre);
        SendClientMessage(playerid, -1, string);
       return 1;
    }
   
    if (strcmp("/vehicle", cmdtext, true, 10) == 0)
    {
        new Float: x, Float: y, Float: z;
        GetPlayerPos(playerid, x, y, z);
        Turismo = CreateVehicle(451, x, y, z, 180, 1, 1, 10);
        PutPlayerInVehicle(playerid, Turismo, 0);
        SendClientMessage(playerid, -1, "Usted ha creado un vehнculo 'Turismo'.");
        return 1;
        }
    if (strcmp("/rcommands", cmdtext, true, 10) == 0)
    {
     if(IsPlayerAdmin(playerid))
     {
     SendClientMessage(playerid, red, "________________RCON Comandos_____________________________");
     SendClientMessage(playerid, yellow, "/rcon loadfs/unloadfs [FSNAME] : Meter, Sacar FS");
     SendClientMessage(playerid, yellow, "/rcon changegamemode [GMname] : Camviar GameMode");
     SendClientMessage(playerid, yellow, "/rcon gravity [gravity] : Canviar la Gravedad");
     SendClientMessage(playerid, yellow, "/rcon players : Muestra todos los Jugadores");
     SendClientMessage(playerid, yellow, "/text : Crear TextDraw");
     SendClientMessage(playerid, yellow, "/npc : Crear un NPC");
     SendClientMessage(playerid, yellow, "/stoprec : Para de Gravar NPC");
     SendClientMessage(playerid, yellow, "/cerate : Crea Texto");
     SendClientMessage(playerid, yellow, "/a [Text] : Enviar mensaje a todos los jugadores");
     SendClientMessage(playerid, red, "__________________________________________________________");
     }
     else
     {
     SendClientMessage(playerid, red, "Tu no eres administrador y no puedes usar este comando");
     }
     return 1;
     }
     
   if (strcmp("/a", cmdtext, true, 10) == 0)
   {
    if(IsPlayerAdmin(playerid))
    {
    SendClientMessageToAll(yellow, "%d");
    }
    else
    {
    SendClientMessage(playerid, red, "Tu no eres administrador");
    }
    return 1;
    }
 return 0;
 }
se que el GM es muy poco pero solo llevo 2 dias poco tiempo porque estaba ocupado
Reply
#2

Debbuging
Reply
#3

lo usas de gm? y porque tienes los public de FS?
Reply
#4

dejando IPs indirectamente ??
Reply
#5

Quote:
Originally Posted by [CG]Milito
Посмотреть сообщение
No entendн mucho xD
Reply
#6

Estaba mal йsto:

pawn Код:
public OnPlayerConnect(playerid)
{
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
    SendClientMessageToAll(yellow, "Se ha conectado %s");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 if(IsPlayerAdmin(playerid))
 {
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
    SendClientMessageToAll(red, "%s se ha desconectado");
 }
 else
 {
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
 }
    return 1;
}

pawn Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
format(string, sizeof(string), "Se ha conectado: %s", name);
SendClientMessageToAll(yellow, string);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 if(IsPlayerAdmin(playerid))
 {
    new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
    format(string, sizeof(string), "%s se ha desconectado", name);
    SendClientMessageToAll(red, string);
 }
 else
 {
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
 }
    return 1;
}
Y el comando /a igual estб mal, porque en los SendClientMessage no puedes usar %s, %d, etc.
Reply
#7

de lo de /a me di cuenta y lo borrй pero lo otro no me di cuenta asн que gracias XD
Reply
#8

pawn Код:
CMD:a(playerid, params[])
{
new string[128];
new result[64];
if(!sscanf(params, "s[64]", result)) {
format(string, sizeof(string), "Administrador[%s]: %s " , NombreJ(playerid), result);
SendClientMessageToAll(-1, string);
}
return 1;
}
Reply
#9

Si te fijas, йl estб usando strcmp no CMD.

Saludos.
Reply
#10

Quote:
Originally Posted by Loox
Посмотреть сообщение
Si te fijas, йl estб usando strcmp no CMD.

Saludos.
Si te fijas el lo puede editar.

PD: Porta te recomiendo CMD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)