Jump to content

bogdan123

Membru
  • Posts

    8
  • Joined

  • Last visited

    Never

Posts posted by bogdan123

  1. if(strcmp(cmd, "/jetpack", true) == 0)
    {
    	if(IsPlayerConnected(playerid))
     	{
    		if (PlayerInfo[playerid][pAdmin] >= 1337)
    		{
    			SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!");
    			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
    			return 1;
    		}
    		else
    		{
    			SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
    			return 1;
    		}
    	}
    }

  2. sterge de sub getplayername:

    format(string, sizeof(string), "{00C0FF}[%s {00C0FF}Spune]:{FFFFFF} %s", sendername, text);		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    

  3. cautati:

    if (realchat)
    si sub
    GetPlayerName(playerid, sendername, sizeof(sendername));
    puneti:
    
    			if (PlayerInfo[playerid][pDonateRank] >= 1 && PlayerInfo[playerid][pHelper] == 0 && PlayerInfo[playerid][pAdmin] == 0)
    			{
    				format(string, sizeof(string), "[V.I.P]%s Says: %s", sendername, text);
    				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    				printf("%s", string);
    			}
    						else if (PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] == 0)
    			{
    				format(string, sizeof(string), "[Helper]%s Says: %s", sendername, text);
    				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    				printf("%s", string);
    			}
    			else if (PlayerInfo[playerid][pAdmin] >= 1)
    			{
    				format(string, sizeof(string), "[Admin]%s Says: %s", sendername, text);
    				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    				printf("%s", string);
    			}
    			else if (PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonateRank] == 0 && PlayerInfo[playerid][pHelper] == 0)
    			{
    				format(string, sizeof(string), "%s Says: %s", sendername, text);
    				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    				printf("%s", string);
    			}

  4. salut ,

    1.folosesc acest mod pentru a detecta playeri afk : http://forum.sa-mp.com/showthread.php?t=186129&highlight=OnPlayerPause

    am facut cum zice Mean aici: http://forum.sa-mp.com/showthread.php?t=205772

    numai ca eu nu vreau sa dea kick decat playerilor cu wanted

    public AFK(playerid)
    {
    	if(IsPlayerPaused(playerid) && WantedLevel[playerid] >= 1)
        	{
    		new sendername[MAX_PLAYER_NAME];
    		GetPlayerName(playerid, sendername, sizeof(sendername));
    		Kick(playerid);
    		new string[256];
    		format(string, sizeof(string), "%s a primit kick ca a lasat AFK cu wanted!", sendername);
    		SendClientMessageToAll(COLOR_LIGHTRED, string);
    		KickLog(string);
        	}
    	return 1;
    }
    aici intervine o problema , playeru primeste kick cand intra intr-un "i" sau cand scrie ceva in chat , cum pot face numai cand apasa esc sau alt tab sa primeasca kick? 2. un sistem count
    public count2()
    {
       new Float:X, Float:Y, Float:Z;
       for(new i; i < MAX_PLAYERS; i++) {
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 2 ~g~-",1000,3);
       GetPlayerPos(i, X,Y,Z);
       }
    }
    public count1()
    {
       new Float:X, Float:Y, Float:Z;
       for(new i; i < MAX_PLAYERS; i++) {
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 1 ~g~-",1000,3);
       GetPlayerPos(i, X,Y,Z);
       }
    }
    public countgo()
    {
       new Float:X, Float:Y, Float:Z;
       for(new i; i < MAX_PLAYERS; i++) {
       GetPlayerPos(i, X,Y,Z);
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~]~g~-~g~START~g~-~y~]~g~-",1000,3);
       PlayerPlaySound(i,1057,X,Y,Z);
       }
    }
    public stop()
    {
       auts = false;
    }

    cum ii pot pune un proxdetector? am incercat eu dar nu merge

    multumesc

  5. Salut , sunt mai incepator in ale samp-ului si am nevoie de putin ajutor , daca vreti sa mi-l acordati.

    1. la comanda /mute sa pot da si pe timp (strcmp)

    2. masina de la casa sa poata fi condusa doar de proprietar si de chiriasi

    3. un afk system , care sa te puna automat afk dupa 5 minute

    Va multumesc.

×
×
  • 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.