Server crashing...
#1

pawn Код:
command(setzombie, playerid, params[])
{
    new pID;
    if( PlayerInfo[playerid][Admin] >= 4)
    {
        if(sscanf(params, "ud", pID)) return SendClientMessage(playerid, COLOUR_WHITE, "Usage: /setzombie [Player/Name]");
        gTeam[pID] = TEAM_ZOMBIE;
        PlayerInfo[pID][Zombie] = 1;
        SetPlayerPos(pID, ZOMBIESPAWN);
        SetPlayerColor(pID, COLOUR_YELLOW);
        SendClientMessage(pID, COLOUR_WHITE, "You have been changed into a zombie by an Admin" );
        SetPlayerSkin(pID, 162);
        GivePlayerWeapon(pID, 9, 0);
    }
    return 1;
}
pawn Код:
command(test, playerid, params[])
{
    if( GetPlayerTeam(playerid) == 2)
    {
        SendClientMessage(playerid, COLOUR_YELLOW, "YOU ARE A ZOMBIE!!!" );
    }
    else
    {
        SendClientMessage(playerid, COLOUR_WHITE, "YOU ARE NOT A ZOMBIE!!!" );
    }
    return 1;
}
Thats what the command is, however when its used it crashes my server. Can anyone see whats wrong?
Reply


Messages In This Thread
Server crashing... - by cloudysky - 27.06.2011, 19:55
Re: Server crashing... - by iPLEOMAX - 27.06.2011, 20:05
Re: Server crashing... - by cloudysky - 27.06.2011, 20:11
Re: Server crashing... - by iPLEOMAX - 27.06.2011, 20:21
Re: Server crashing... - by CrazyBlob - 27.06.2011, 20:49
Re: Server crashing... - by Mean - 27.06.2011, 22:52

Forum Jump:


Users browsing this thread: 2 Guest(s)