Jump to content

[RSD]TheBoss

Membru
  • Posts

    262
  • Joined

  • Last visited

    Never

Posts posted by [RSD]TheBoss

  1. Foloseste 0Admin

    fa asa:

    la OnPlayerText:

    if(GetPlayerLevel(playerid)  == 1)
    {
    new msgadmin[30];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(msgadmin,sizeof(msgadmin),"[Admin]:%s say:%s",name,text);
    SendClientMessageToAll(COLOR_RED,msgadmin);
    }
    else if(GetPlayerVip(playerid) ==1)
    {
    new msgvip[29];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(msgvip,sizeof(msgvip),"[V.I.P]%s say:%s",name,text);
    SendClientMessageToAll(COLOR_RED,msgvip);
    }
    

    o Bagi la public OnPLayerText(...)

    intre

    {

    }

    sper sa-ti mearga

    si iti sugere sa iei Colors de aici includele

    http://www.xerom-zone.ro/index.php?action=include

  2. ma dami scriptul unul dintre ele este lost indentation care creeaza buguri din cauza ca-si pierde cunostinta scriptul

    deci adaugi in script

    #pragma tabsize 0

    caci despre pickup

    world 0 lumea normala pui la world 0

    iar tu nu ai creat variabila

    deci

    sus in script
    new stunpark ;
    la OnGameModeInit
    stuntpark=Createpickup(coordonatele);
    la OnPlayerPickUpPickup(playerid, pickupid)
    intre {
    }
    aduagi
    if(pickupid ==stuntpark)
    {
    //code ce vrei tu sa trimita un mesaj etc...
    }
    

  3. daca poti sa mai rezolvi si tu cateva din chesti dar cand m-am uitat prin include am depistat cateva erori asa din vedere....:|am reusit oarecums sa rezolv vreo 1 ....etc dar ....hm

    oricum cred ca daca ar fi sa setezi ceva la SetPlayerHours(playerid,hours)

    este ca la celalalte nu?

    adica

    exemplu ca la

    stock SetPlayerKills(playerid, kills)
    {
    	if ( kills < 0 ) kills = 0;
    	SetPVarInt( playerid, _0A_INI[ 2 ], kills );
    	return true;
    }
    

    nu?sau ma insel ....ma rog

  4. ma sunt buguri la unele comenzi...la unele functi am facut un script de la 0% fara nimic in el ca sa nu ziceti ca am buguit gm...

    am bagat systemu tau de admin

    am facut o comanda sa-ti cumperi v.i.p pe respect...

    cand intri in joc sa-ti dea 160 respect positive si cand dau /stats nimic ....nu e nimic la Resepct ..e 0+/-0 ma rog...nu inteleg de ce o sa incerc sa rezolv...

  5. Bravo Zh3r0 esti cel mai tare....si mai am ceva de zis but in english:

    this admin system not is as other system is more commands is 120 commands about........or more ..?

    So good job Man,Good Job you reached a high level at categories scripting :D

    ai mai gresit tu cateva chesti la engleza.....dar asta este nimeni nu stie la perfectie engleza decat cei care stiu limba asta de cand s-au nascut ....

  6. stiu ...dupa parerea mea asta e bun pentru un server de RP....ca sa-si refeca viata dar si pentru stunt pentru fun si viata...

    Stiu ca daca nu stiam numai faceam sau va ceream voua ajutorul lam facut in 2 minute ce naiba.....

    totusi daca vreti fac ceva mai maret dar nam ce....apropo in f.s asta daca te prinde ca fumezi iti scade cate -2 din viata parca...

  7. Am facut un dialog stupid pentru disperati astia dupa bere tigari si chesti deastea ...lam facut din lipsa de ocupatie

    Trebuia sa reamintesc ca voi trebuie sa le adaugati ....nam avut chef sa fac un nou fs...sa introduc astea in el si sa mai adaug si pe un site ...

    asa ca il pun aici

    comanda care trebuie adaugata la OnPlayerCommandText(playerid,cmdtext[]) intre { }
    if(strcmp("/magazin",cmdtext,true) ==0)
    {
    ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"Shop","Coffe \nHamburger \nHotDog \nBeer \nCiggaretes \nSprunk \nWine ");
    return 1;
    }
    
    si la OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
    if(dialogid ==15)
    {
    if(response)
    {
    if(listitem ==0)
    {
    if(GetPlayerMoney(playerid) >=500)
    {
    SendClientMessage(playerid,COLOR_BLUE,"You bought coffe!");
    GivePlayerMoney(playerid,-500);
    SetPlayerHealth(playerid,100);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have enoungh money!");
    }
    }
    if(listitem ==1)
    {
    if(GetPlayerMoney(playerid) >=300)
    {
    GivePlayerMoney(playerid,-300);
    SendClientMessage(playerid,COLOR_BLUE,"You bought a Hamburger!");
    SetPlayerHealth(playerid,100);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have enoungh money!");
    }
    }
    if(listitem ==2)
    {
    if(GetPlayerMoney(playerid) >=400)
    {
    GivePlayerMoney(playerid,-400);
    SendClientMessage(playerid,COLOR_BLUE,"You bought a Hotdogs!");
    SetPlayerHealth(playerid,100);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have enoungh Money!");
    }
    }
    if(listitem ==3)
    {
    if(GetPlayerMoney(playerid) >=1000)
    {
    GivePlayerMoney(playerid,-1000);
    SendClientMessage(playerid,COLOR_BLUE,"You bought a beer and now drink ) ");
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't have enoungh money!");
    }
    }
    if(listitem ==4)
    {
    if(GetPlayerMoney(playerid) >=1500)
    {
    GivePlayerMoney(playerid,-1500);
    SendClientMessage(playerid,COLOR_GREEN,"You bought a ciggarete and now you smoke )");
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You Don't have enoungh money!");
    }
    }
    if(listitem ==5)
    {
    if(GetPlayerMoney(playerid) >=1750)
    {
    GivePlayerMoney(playerid,-1750);
    SendClientMessage(playerid,COLOR_RED,"You bought a sprunk and now you drink!");
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You don't have enoungh money!");
    }
    }
    if(listitem ==6)
    {
    if(GetPlayerMoney(playerid) >=2000)
    {
    GivePlayerMoney(playerid,-2000);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
    SendClientMessage(playerid,COLOR_BLUE,"You bought a Wine and you now drink!");
    SetTimer("ViataSC",3000,1);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREEN,"You Don't have enoungh money!");
    }
    }
      }
    else
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Ok...So you don't want nothing ...Ok GoodBye");
    }
     return 1;
    }
    
    Lam facut pentru disperati dupa bere si chesti deastea....sunt si destia lam terminat adineauri si l-am inceput acum vreo 2 minute cred Ok sper va placa .... si ar mai fi ceva oriunde intr-un topic dar nu intr-un public
    forward ViataSC();
    public ViataSC()
    {
    for(new i;i <MAX_PLAYERS;i++)
    {
    if(GetPlayerSpecialAction(i) ==SPECIAL_ACTION_SMOKE_CIGGY) 
    {
    SetPlayerHealth(i,GetPlayerHealth(playerid)-1);
    }
    else 
    {
    }
    }
    }
    

  8. as vrea sa fac un comanda prin zcmd....vreau sa spun ca e prima mea comanda prin zcmd...

    am incercat sa fac dupa o gramada de exemple dar nu reusesc pur si simplu nu ma descurc sa fac comanda am incercat sa fac o comanda prin care sa transimiti scor unui player...

    am facut ceva...din ea uitati..

    CMD:givescore(playerid,params[])
    {
    new tmp[23];
    new giveplayerid,name[30],name2[31],mess[32];
    if(sscanf(params,"is[24]",giveplayerid,GetPlayerScore(playerid)) ) return SendClientMessage(playerid,COLOR_RED,"/givescore [playerid] [score]");
    else if(giveplayerid ==INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"This player is not connected..");
    else
    {
    giveplayerid= strval(tmp);
    GetPlayerName(giveplayerid,name,sizeof(name));
    GetPlayerName(playerid,name2,sizeof(name2));
    }
    }
    

    de aici m-am pierdut numai stiu ce sa mai fac..

  9. stuntman e aceeasi chestie ca la mn :))...hm ai bagat si

    stock IsVehicleOcupied?...

    si stock CreateVehicleEx...?in gm?

    iar daca  le ai uitate cu atentie la dialog...si verifica daca nu ai uitat o } sau ceva..

    daca nu le ai adaugale oriunde dar nu intr-un public

    ex

    public Branza()

    {

    ...//nu aici cum ar veni le adaugi in afara

    }

    //aici exp

    stock IsVehicleOccupied(vehicleid)
    {
      	for(new i = 0; i < MAX_PLAYERS; i++)
    	{
    		if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
    		{
    			if(GetPlayerVehicleID(i) == vehicleid) return 1;
    		}
    	}
    	return 0;
    }
    
    stock CreateVehicleEx(playerid, vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay)
    {
    	new world = GetPlayerVirtualWorld(playerid);
    	new interior = GetPlayerInterior(playerid);
    	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    	{
    		DestroyVehicle(GetPlayerVehicleID(playerid));
    		GetPlayerPos(playerid, x, y, z);
    		GetPlayerFacingAngle(playerid, rotation);
    		CurrentSpawnedVehicle[playerid] = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
            LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
    		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
    		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], rotation);
    		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
    		SetPlayerInterior(playerid, interior);
    	}
    	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    	{
    	    if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
    		GetPlayerPos(playerid, x, y, z);
    		GetPlayerFacingAngle(playerid, rotation);
    		CurrentSpawnedVehicle[playerid] = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
    		LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
    		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
    		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], rotation);
    		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
    		SetPlayerInterior(playerid, interior);
    	}
    	return 1;
    }
    
    

  10. ia uite frate l-am postate eu prima data ...e toata lumea  a sarit pe lume ca nu-i bun de nimic ...etc..dar cand il posteaza asta dintr-un gm care-i luat dupa net e namipomenit hai?.....

    si l-am facut de la %0 nu l-am copiat...off of ce prost sunt ca am  zis ca  e removed..

    oricum in acest moment ma apuc de un scripting pentru ziua de paste...

    oricum bravo.....1.5/5 pentru ca este foarte usor de facut daca erai incepator iti dadeam 4.5/5 dar asa...

  11. daca e GameMode pune return 0; daca e FilterScript pune return 1;...

    tu ai facut o mare greseala la comanda ai pus return 0; la toate? nu?...

    ee deaia sterge de la comenzi return 0; inlocuiesti cu return 1;....

    iar la finalul lui

    OnPlayerCommandText(playerid.cmd[])
    {
    if(strcmp(cmd, "/time", true) == 0)
    		{
    		    if(IsPlayerConnected(playerid))
    			{
    			    new mtext[20];
    				new year, month,day;
    				getdate(year, month, day);
    				if(month == 1) { mtext = "January"; }
    				else if(month == 2) { mtext = "February"; }
    				else if(month == 3) { mtext = "March"; }
    				else if(month == 4) { mtext = "April"; }
    				else if(month == 5) { mtext = "May"; }
    				else if(month == 6) { mtext = "June"; }
    				else if(month == 7) { mtext = "July"; }
    				else if(month == 8) { mtext = "August"; }
    				else if(month == 9) { mtext = "September"; }
    				else if(month == 10) { mtext = "October"; }
    				else if(month == 11) { mtext = "November"; }
    				else if(month == 12) { mtext = "December"; }
    			    new hour,minuite,second;
    				gettime(hour,minuite,second);
    				FixHour(hour);
    				hour = shifthour;
    
    				format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d:%d~g~|", day, mtext, hour, minuite,second);
    				GameTextForPlayer(playerid, string, 5000, 1);
    			}
    			return 1;
    		}
    		else
    		{
                SendClientMessage(playerid, COLOR_WHITE, "[Info:] You are not logged in");
                return 1;
            }
    	}
    	return 0;
    } 
    return 0; //daca  e gm... iar 1 daca e fs
    }
    

    SendClientMessage este definit de doua ori cauta si sterge....

  12. Salls, cum pot sa fac asa de ex la commanda asta:

    if(strcmp(cmd, "/ad", true) == 0)
        {
          new message[256];
          new playername[MAX_PLAYER_NAME];
          strmid(message, cmdtext, 3, strlen(cmdtext));
          GetPlayerName(playerid, playername, sizeof(playername));
          if(!strlen(message))
          {
          SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
          }
          else
          {
             format(string, sizeof(string), "[RadioVibeFm] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);
             printf(string);
             SendClientMessageToAll(0xADFF2FAA, string);
            GivePlayerMoney(playerid,-2000);
          }
          return 1;
        }
    
    sa nu ii permita sa foloseasca commanda daca playerul are 0 bani ca la mn cand playerul are 0000000000 CASH foloseste commanda si ii da -2000 de cash...deci cum se poate face ca sa nui permita sa foloseasca comanda daca are 0 cash???va rog help
    asta cred ca e utlima data cand va dau mura in gura if(strcmp(cmd, "/ad", true) == 0)     {     if(GetPlayerMoney(playerid) >=1000) //1000 inlocuiesti cu cat vrei tu .. {       new message[256];       new playername[MAX_PLAYER_NAME];       strmid(message, cmdtext, 3, strlen(cmdtext));       GetPlayerName(playerid, playername, sizeof(playername));       if(!strlen(message))       {       SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");       }       else       {         format(string, sizeof(string), "[RadioVibeFm] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);         printf(string);         SendClientMessageToAll(0xADFF2FAA, string);         GivePlayerMoney(playerid,-2000);//iar daca vrei fara bani stergi functia asta si nu adaugi if(get...) si nici else Send...mai jos..       } } else SendClientMessage(playerid,0xADFF2FAA,"You don't have enoungh Money!.2.000$");       return 1;     } adica faci asa
    if(strcmp(cmd, "/ad", true) == 0)
        {
          new message[256];
          new playername[MAX_PLAYER_NAME];
          strmid(message, cmdtext, 3, strlen(cmdtext));
          GetPlayerName(playerid, playername, sizeof(playername));
          if(!strlen(message))
          {
          SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
          }
          else
          {
             format(string, sizeof(string), "[RadioVibeFm] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);
             printf(string);
             SendClientMessageToAll(0xADFF2FAA, string);
          }
          return 1;
        }
    
    

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