[HELP]Counter Strike Gamemode Errors.
#3

Sorry about the typo :c I fixed it but still the same thing
here new lines: [153~222]
pawn Код:
//=========================Commands===========================================\\
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cs", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Counter Strike, Choose a team!", "{0000FF}Counter Terrorists", "{FF0000}Terrorists", "Select");
        SetPlayerVirtualWorld(playerid, 50);
        return 1;
    }

    if (strcmp("/leavecs", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Counter Strike, Leaving!", "{FF0000}You're about to leave Counter Strike, press OK to continue!", "Ok");
        SetPlayerVirtualWorld(playerid, 50);
    }
}
//=========================OnPlayerDialogResponse=============================\\
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(dialogid)
        {
        case 1:
            {
            switch(listitem)
            {
                case 0:
                {
                    GameTextForPlayer(playerid, "~b~Counter Terrorists~y~ ... ~b~Loading~y~...", 5000, 5);
                    SetPlayerPos(playerid,2579.6003,-1655.2416,2.2153);
                    SetPlayerFacingAngle(playerid, 176.6750);
                    SendClientMessage(playerid, -1, "{FF0000}Kill some {0066cc}Counter-{FFFF00}Terrorists{FFCC33}!");
                    SetPlayerSkin(playerid, 285);
                    SetPlayerColor(playerid, 0x0000FFFF);
                    SetPlayerHealth(playerid, 100);
                    SetPlayerArmour(playerid, 100);
                    SetPlayerArmedWeapon(playerid,0);
                    GivePlayerWeapon(playerid, 24, 99999);
                    GivePlayerWeapon(playerid, 25, 99999);
                    GivePlayerWeapon(playerid, 31, 99999);
                    GivePlayerWeapon(playerid, 16, 99999);
                    SetPlayerCheckpoint(playerid, 2583.8486,-1926.6647,3.8594,3);
                    SetPlayerVirtualWorld(playerid, 99);
                }
                case 1:
                {
                    GameTextForPlayer(playerid, "~r~Terrorists~y~ ... ~b~Loading~y~...", 5000, 5);
                    SetPlayerPos(playerid,2584.0322,-1932.2449,3.8594);
                    SetPlayerFacingAngle(playerid, 0.2667);
                    SendClientMessage(playerid, -1, "{FF0000}Kill some {FFFF00}Terrorists{FFCC33}!");
                    SetPlayerArmedWeapon(playerid,0);
                    GivePlayerWeapon(playerid, 24, 9999);
                    GivePlayerWeapon(playerid, 25, 9999);
                    GivePlayerWeapon(playerid, 30, 9999);
                    GivePlayerWeapon(playerid, 18, 9999);
                    SetPlayerSkin(playerid, 108);
                    SetPlayerColor(playerid, 0xFF0000C7);
                    SetPlayerHealth(playerid, 100);
                    SetPlayerArmour(playerid, 100);
                    SetPlayerCheckpoint(playerid, 2578.6597,-1648.5959,2.3693,3);
                    SetPlayerVirtualWorld(playerid, 99);
                }
            }
        }
    }
    return true;
    }
    return false;
}
P.S: Can you use (pawn)(/pawn) instead of (php)(/php) pls.
Reply


Messages In This Thread
[HELP]Counter Strike Gamemode Errors. - by EgyptForLife - 03.02.2015, 13:41
Re: [HELP]Counter Strike Gamemode Errors. - by Matess - 03.02.2015, 13:45
Re: [HELP]Counter Strike Gamemode Errors. - by EgyptForLife - 03.02.2015, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)