[GM] TechLand Xperia RP | Prebacen u 0.3e |

Započeo Muhamed., April 09, 2012, 15:21:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Anonimen

super Gamemod bravo svaka cast
Ali mozes produziti da skriptat

 MOd je odlican , ja sam ga dosta doradio i sve , samo imam pitanje
vako ono /makestan moze raditi bas svako , e kako cu ja sada staviti da to moze samo 1338
evo kod

CMD:makestan(playerid, params[])
{
    new string[128];
    new NewStanID = SpawnedStan+1;

    GetPlayerPos(playerid, Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);

    PlayerInfo[playerid][pStanExterior]++;

    format( string, sizeof( string ), "Exterijer postavljen (X: %f, Y: %f, Z: %f).", Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);
    SendClientMessage( playerid, WHITE, string);
    GetPlayerPos(playerid, Stan[NewStanID][sInteriorX], Stan[NewStanID][sInteriorY], Stan[NewStanID][sInteriorZ]);

    PlayerInfo[playerid][pStanInterior]++;

    Stan[NewStanID][hInteriorID] = GetPlayerInterior( playerid );

    format( string, sizeof( string ), "Interijer postavljen! (X: %f, Y: %f, Z: %f).",Stan[NewStanID][sInteriorX], Stan[NewStanID][sInteriorY], Stan[NewStanID][sInteriorZ]);
    SendClientMessage( playerid, WHITE, string);

    if(NewStanID >= MAX_STAN) {
        SendClientMessage( playerid, WHITE, "Vec ima previse stanova!" );
    }
    else {
        format( string, sizeof( string ), "Stanovi/Stan_%d.ini", NewStanID);

        if(!fexist( string) ) {
            new id;
            SpawnedStan++;
            Stan[NewStanID][HousePrice] = 10000;
            Stan[NewStanID][sLevel] = 3;
            Stan[NewStanID][hOwned] = 0;
            format(Stan[NewStanID][hOwner], 255, "Niko" );
            Stan[NewStanID][LockStatus] = 0;
            Stan[NewStanID][HPickupID] = AddStaticPickup(1273, 1, Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);

            dini_Create( string);
            dini_IntSet( string, "InteriorID", Stan[NewStanID][hInteriorID]);
            dini_FloatSet( string, "InteriorX", Stan[NewStanID][sInteriorX]);
            dini_FloatSet( string, "InteriorY", Stan[NewStanID][sInteriorY]);
            dini_FloatSet( string, "InteriorZ", Stan[NewStanID][sInteriorZ]);

            dini_IntSet( string, "HousePrice", 10000 );

            dini_IntSet( string, "ExteriorID", 0 );
            dini_FloatSet( string, "ExteriorX", Stan[NewStanID][sExteriorX]);
            dini_FloatSet( string, "ExteriorY", Stan[NewStanID][sExteriorY]);
            dini_FloatSet( string, "ExteriorZ", Stan[NewStanID][sExteriorZ]);

            dini_IntSet( string, "VaultMoney", -1);

            dini_Set( string, "Owner", "Niko" );
            dini_IntSet(string, "Level", 3);

            dini_IntSet( string, "LockStatus", Stan[NewStanID][LockStatus]);
            dini_Set( string, "Opis", Stan[NewStanID][hOpis]);
            dini_IntSet( string, "Owned", Stan[NewStanID][hOwned]);
            PlayerInfo[playerid][pStanExterior]--;
            PlayerInfo[playerid][pStanInterior]--;
            OnPropTextdrawUpdate(4,id);
            format(string, sizeof(string), "Uspjesno postavljen stan | ID: %i",NewStanID);
            SendClientMessage(playerid, WHITE, string);
            return 1;
        }
    }
    return 1;
}

Molim vas pomoc i samo mi popravite code kako treba pa cu ja zaljepiti tamo .....
HITNO!!!
Moji Radiovi!
TuT||Iz code u MTA

HITNO ! KOJI TEXTDRAW TERBAM OBRISATI DA MI SE NEPOJAVLJUJE ONO KAD SAM U VOZILU ?
SKRIPTER/MAPPER[POCETNIK]

Citat: _HarDy_ poslato Jul 12, 2012, 09:32:51 PRE PODNE
MOd je odlican , ja sam ga dosta doradio i sve , samo imam pitanje
vako ono /makestan moze raditi bas svako , e kako cu ja sada staviti da to moze samo 1338
evo kod

CMD:makestan(playerid, params[])
{
    new string[128];
    new NewStanID = SpawnedStan+1;

    GetPlayerPos(playerid, Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);

    PlayerInfo[playerid][pStanExterior]++;

    format( string, sizeof( string ), "Exterijer postavljen (X: %f, Y: %f, Z: %f).", Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);
    SendClientMessage( playerid, WHITE, string);
    GetPlayerPos(playerid, Stan[NewStanID][sInteriorX], Stan[NewStanID][sInteriorY], Stan[NewStanID][sInteriorZ]);

    PlayerInfo[playerid][pStanInterior]++;

    Stan[NewStanID][hInteriorID] = GetPlayerInterior( playerid );

    format( string, sizeof( string ), "Interijer postavljen! (X: %f, Y: %f, Z: %f).",Stan[NewStanID][sInteriorX], Stan[NewStanID][sInteriorY], Stan[NewStanID][sInteriorZ]);
    SendClientMessage( playerid, WHITE, string);

    if(NewStanID >= MAX_STAN) {
        SendClientMessage( playerid, WHITE, "Vec ima previse stanova!" );
    }
    else {
        format( string, sizeof( string ), "Stanovi/Stan_%d.ini", NewStanID);

        if(!fexist( string) ) {
            new id;
            SpawnedStan++;
            Stan[NewStanID][HousePrice] = 10000;
            Stan[NewStanID][sLevel] = 3;
            Stan[NewStanID][hOwned] = 0;
            format(Stan[NewStanID][hOwner], 255, "Niko" );
            Stan[NewStanID][LockStatus] = 0;
            Stan[NewStanID][HPickupID] = AddStaticPickup(1273, 1, Stan[NewStanID][sExteriorX], Stan[NewStanID][sExteriorY], Stan[NewStanID][sExteriorZ]);

            dini_Create( string);
            dini_IntSet( string, "InteriorID", Stan[NewStanID][hInteriorID]);
            dini_FloatSet( string, "InteriorX", Stan[NewStanID][sInteriorX]);
            dini_FloatSet( string, "InteriorY", Stan[NewStanID][sInteriorY]);
            dini_FloatSet( string, "InteriorZ", Stan[NewStanID][sInteriorZ]);

            dini_IntSet( string, "HousePrice", 10000 );

            dini_IntSet( string, "ExteriorID", 0 );
            dini_FloatSet( string, "ExteriorX", Stan[NewStanID][sExteriorX]);
            dini_FloatSet( string, "ExteriorY", Stan[NewStanID][sExteriorY]);
            dini_FloatSet( string, "ExteriorZ", Stan[NewStanID][sExteriorZ]);

            dini_IntSet( string, "VaultMoney", -1);

            dini_Set( string, "Owner", "Niko" );
            dini_IntSet(string, "Level", 3);

            dini_IntSet( string, "LockStatus", Stan[NewStanID][LockStatus]);
            dini_Set( string, "Opis", Stan[NewStanID][hOpis]);
            dini_IntSet( string, "Owned", Stan[NewStanID][hOwned]);
            PlayerInfo[playerid][pStanExterior]--;
            PlayerInfo[playerid][pStanInterior]--;
            OnPropTextdrawUpdate(4,id);
            format(string, sizeof(string), "Uspjesno postavljen stan | ID: %i",NewStanID);
            SendClientMessage(playerid, WHITE, string);
            return 1;
        }
    }
    return 1;
}

Molim vas pomoc i samo mi popravite code kako treba pa cu ja zaljepiti tamo .....
HITNO!!!

HHaahh doradio , dodaj ovo if(playerinfo[Playerid][pAdmin] == 1338)

Radil' war?

Ono, da ide rezultat itd...

:D
[Size="5"]91.215.156.147:7747[/SIZE]

vi i dalje sa spamom :/
pitanja koja su X puta odgovorena opet se postavljaju  ::)
pa neka
lock