server shuts down
#3

ive got 0.3e i dont think its that maybe my filterscript :/

pawn Код:
CMD:setadmin(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))return 0;
    if(sscanf(params,"ui",ID,levels)) return SendClientMessage(playerid,0xFF9900AA, "USAGE: /setadmin [ID] [Level 1-4]");//it will show this if you dont use the format properly
    if(levels > 6) return SendClientMessage(playerid,0xFF0000FF,"LEVELS AVAILABLE 1-6!");//Available levels
    if(!IsPlayerConnected(ID))return SendClientMessage(playerid,-1,"That user is not connected.");//Detect if the id/partofname is connected
    if(PlayerData[ID][AdminLevel] == levels) return SendClientMessage(playerid,0xFF0000FF, "ERROR: That person is already this admin level!");//Detect if the guy is already the level you setted
    GetPlayerName(playerid,Nam, MAX_PLAYER_NAME);//define the playerid name
    GetPlayerName(ID,pname,MAX_PLAYER_NAME);//define the other person name
    if(levels == 0)
    {
        format(str, sizeof(str),"%s has your Admin level to %d on the server.",Nam,levels);
        SendClientMessage(ID,0xFF9900AA,str);
        format(str, sizeof(str),"You had set %s Admin level to %d!",pname,levels);
        SendClientMessage(playerid,0xFF9900AA,str);
        PlayerData[ID][AdminLevel] = levels;//this sets the player level
        return 1;
    }
    format(str, sizeof(str),"%s has your Admin level to %d on the server.",Nam,levels);
    SendClientMessage(ID,0xFF9900AA,str);
    format(str, sizeof(str),"You had set %s Admin level to %d!",pname,levels);
    SendClientMessage(playerid,0xFF9900AA,str);
    PlayerData[ID][AdminLevel] = levels;
    return 1;
}
CMD:givecar(playerid,params[])
{
    new vehid;
    new id;
    new str[128];
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"du",vehid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [vehid] [player id]");
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    CreateVehicle(vehid, X, Y, Z, angle, 0, 1, -1);
    PutPlayerInVehicle(id, vehid, 0);
    format(str,sizeof(str),"%s has given you a vehicle", GetPlayerName(playerid));
    SendClientMessage(playerid, -1, str);
    return 1;
}
CMD:goto(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z);
    return 1;
}
CMD:explode(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /explode [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    CreateExplosion(X, Y, Z, 2, 10.0);
    return 1;
}
CMD:setskin(playerid, params[])
{
    new id;
    new skinid;
    if(sscanf(params,"du",skinid, id)) return SendClientMessage(playerid,-1,"Error: - /setskin [skinid] [player id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetPlayerSkin(id, skinid);
    return 1;
}
CMD:killhim(playerid, params[])
{
    new id;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /killhim [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetPlayerHealth(id, 0);
    return 1;
}
CMD:godmode(playerid, params[])
{
    SetPlayerHealth(playerid, 100000);
    return 1;
}
CMD:fix(playerid, params[])
{
    new id;
    new currentveh;
    currentveh = GetPlayerVehicleID(id);
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE;/fix [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetVehicleHealth(currentveh, 1000.0);
    return 1;
}
stock ReturnPlayerName(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof (pname));
    return pname;
}
#endif
Reply


Messages In This Thread
server shuts down - by thefatshizms - 06.06.2012, 18:09
Re: server shuts down - by Smokkr - 06.06.2012, 18:13
Re: server shuts down - by thefatshizms - 06.06.2012, 18:16
Re: server shuts down - by Faisal_khan - 06.06.2012, 18:17
Re: server shuts down - by thefatshizms - 06.06.2012, 18:29
Re: server shuts down - by InfinityCOD - 06.06.2012, 18:45
Re: server shuts down - by thefatshizms - 06.06.2012, 19:23
Re: server shuts down - by Faisal_khan - 07.06.2012, 01:33
Re: server shuts down - by thefatshizms - 07.06.2012, 11:05
Re: server shuts down - by Mauzen - 07.06.2012, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)