Jump to content

Question

6 answers to this question

Recommended Posts

Posted

aratane comanda

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

Buna seara alinutz

Am constatat ca problema este din cauza comenzii.Te rog posteaza toata comanda /setlevel dupa care gasim imediat o rezolvare rapida a problemei.

Si o intrebare,folosesti BUD ?

Multumesc,

[Pawn]/Onica Razvan

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

Posted

aceasta este comanda!

[pawn]CMD:setlevel ( playerid , params [ ] )

{

new level , id;

if ( PlayerInfo [ playerid ] [ Level ] == 6 || IsPlayerAdmin ( playerid ) )

{

    if ( sscanf ( params , "ud" , id , level ) )

    {

SendClientMessage ( playerid , red , "{FF0000}Foloseste /setlevel [ id ] [ level ]" ) ;

    }

    else if ( id == INVALID_PLAYER_ID )

        {

SendClientMessage ( playerid , red , "{B3B3B3} Id-ul introdus este gresit" ) ;

        }

        else if ( level > 6 )

        {

            SendClientMessage ( playerid , red , "{B3B3B3} Level incorect , levelul maxim e 6" ) ;

        }

        else

        {

        new str [ 150 ];

            format ( str , 150 , "{B3B3B3}I-ai setat lui {FF0000}%s {B3B3B3}levelul de admin la {FF0000}%d" , GetName ( id ) , level ) ;

            SendClientMessage ( playerid , red , str ) ;

            format ( str , 150 , "{B3B3B3}%s ti-a setat {B3B3B3}levelul de admin la {FF0000}%d" , GetName ( playerid ) , level ) ;

            SendClientMessage ( id , red , str ) ;

PlayerInfo [ id ] [ Level ] = level;

        }

}

else

{

    SendClientMessage ( playerid , red , "{B3B3B3} Trebuie sa fii admin level 6 pentru a folosi aceasta comanda" ) ;

}

return 1;

}[/pawn]

Posted

Posteaza si OnPlayerDisconnect te rog..

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

Posted

[pawn]public OnPlayerDisconnect ( playerid , reason )

{

new

        string [ 500 ] ,

        name [ MAX_PLAYER_NAME ];

    GetPlayerName ( playerid , name , MAX_PLAYER_NAME ) ;

    switch ( reason )

    {

        case 0: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Timed out )" , name ) ;

        case 1: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Leaving )" , name ) ;

        case 2: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Kicked/Banned )" , name ) ;

    }

    SendClientMessageToAll ( 0xAD8693AA , string ) ;

    mDM [ playerid ] = false ;

    if ( PlayerInfo [ playerid ] [ pCar ] != -1 ) CarDeleter ( playerid , PlayerInfo [ playerid ] [ pCar ] ) ;

    format ( Query , 256 , "UPDATE `Users` SET `Level`='%d' , `Warnings`='%d' , `Vip`='%d' , `Kills`='%d' , `Deaths`='%d' , `Money`='%d' , `Score`='%d' , `Coins`='%d' , `XP` = '%d' WHERE `Name`='%s'" ,

PlayerInfo [ playerid ] [ Level ] , PlayerInfo [ playerid ] [ Warnings ] , PlayerInfo [ playerid ] [ Vip ] , PlayerInfo [ playerid ] [ Kills ] , PlayerInfo [ playerid ] [ Deaths ] , GetPlayerMoney ( playerid ) , GetPlayerScore ( playerid ) , PlayerInfo [ playerid ] [ Coins ] , PlayerInfo [ playerid ] [ xp ] , GetName ( playerid ) ) ;

db_query ( Database , Query ) ;

iPlayerChatTime[playerid] = 0;

szPlayerChatMsg[playerid] = "";

return 1;

}

[/pawn]

Posted

ai vrun stock "SavePlayerStats" sau "SaveStats" ori ceva de gen ? daca da posteaza stockul

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.