Problem
#1

[REMOVED, THANKS FOR THE HELP]
Reply
#2

Those are warnings. to fix them
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //teleports
    if (strcmp("/lsa", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, 1990.6156,-2335.7556,13.5469);
        SetPlayerFacingAngle(playerid, 82.8390);
        SendClientMessage(playerid, COLOR_GREEN, "You have been teleported.");
        return 1;
    }

    if (strcmp("/sfa", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, -1196.7540,-162.0608,14.1484);
        SetPlayerFacingAngle(playerid, 90.3707);
        SendClientMessage(playerid, COLOR_GREEN, "You have been teleported.");
        return 1;
    }

    if (strcmp("/lva", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, 1319.4534,1262.0178,10.8203);
        SetPlayerFacingAngle(playerid, 359.4272);
        SendClientMessage(playerid, COLOR_GREEN, "You have been teleported.");
        return 1;
    }

    //Kill, armour, health etc.
    if (strcmp("/kill", cmdtext, true, 5) == 0)
    {
        SetPlayerHealth(playerid, 0);
        SendClientMessage(playerid, COLOR_GREY, "Your health has been set to 0.");
        return 1;
    }

    if (strcmp("/armour", cmdtext, true, 5) == 0)
    {
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid, COLOR_GREY, "Your armour has been set to 100.");
        return 1;
    }

    if (strcmp("/health", cmdtext, true, 5) == 0)
    {
        SetPlayerHealth(playerid, 100);
        SendClientMessage(playerid, COLOR_GREY, "Your health has been set to 100.");
        return 1;
    }

    //help commands
    if (strcmp("/help", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the Vidin Test Server help");
        SendClientMessage(playerid, COLOR_YELLOW, "Type /health to set your health to 100");
        SendClientMessage(playerid, COLOR_YELLOW, "Type /armour to set your armour to 100");
        SendClientMessage(playerid, COLOR_YELLOW, "Type /kill to sey your health to 0");
        SendClientMessage(playerid, COLOR_YELLOW, "Type /tps to see the list of all Test Server Teleports");
        return 1;
    }

    if (strcmp("/tps", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Type /aps to see list with every airport teleport");
        return 1;
    }

    if (strcmp("/aps", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "/dsa - Desert Strip Airport");
        SendClientMessage(playerid, COLOR_YELLOW, "/lsa - Los Santos Airport");
        SendClientMessage(playerid, COLOR_YELLOW, "/sfa - San Fiero Airport");
        SendClientMessage(playerid, COLOR_YELLOW, "/lva - Las Venturas Airport");
        return 1;
    }
    return 0;
}
Reply
#3

Can you send it on a place that I can copy it currectly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)