SA-MP Forums Archive
how to add og loc house - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to add og loc house (/showthread.php?tid=521773)

Pages: 1 2


Re: how to add og loc house - ReD_DeVi - 24.06.2014

Ok let me check and i had send you a request on skype please accepet it....


Re: how to add og loc house - ReD_DeVi - 24.06.2014

when i typed ogloc then it is falling from up what to do ?


Re: how to add og loc house - Clad - 24.06.2014

Quote:
Originally Posted by ReD_DeVi
View Post
when i typed ogloc then it is falling from up what to do ?
Ah yes sorry, You need to change Interior too.
pawn Code:
SetPlayerInterior(playerid, 3);



Re: how to add og loc house - ReD_DeVi - 24.06.2014

the ogloc command itself i should


Re: how to add og loc house - Clad - 24.06.2014

Quote:
Originally Posted by ReD_DeVi
View Post
the ogloc command itself i should
Yes, Under SetPlayerPos.


Re: how to add og loc house - ReD_DeVi - 24.06.2014

then how to make it as class selection when i added that addplayerclass then it is showing as cj


Re: how to add og loc house - Clad - 24.06.2014

Quote:
Originally Posted by ReD_DeVi
View Post
then how to make it as class selection when i added that addplayerclass then it is showing as cj
You want the skin be changed to Og Loc skin ? Or you want Og Loc's House as Class selection ?


Re: how to add og loc house - ReD_DeVi - 24.06.2014

i want og Loc's house as class selection


Re: how to add og loc house - Clad - 24.06.2014

Quote:
Originally Posted by ReD_DeVi
View Post
i want og Loc's house as class selection
You couldn't tell me from the begining ? LOL.
pawn Code:
public OnGameModeInit()
{
    AddPlayerClass(0, 513.882507, -11.269994, 1001.565307, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(299, 513.882507, -11.269994, 1001.565307, 269.15, 26, 36, 28, 150, 0, 0);
    return 1;
}
Try this


Re: how to add og loc house - ReD_DeVi - 24.06.2014

when i tryed it is showing cj skin


Re: how to add og loc house - AroseKhanNiazi - 24.06.2014

clad he is not going anywhere .... bro read some tutorials


Re: how to add og loc house - Clad - 24.06.2014

Quote:
Originally Posted by AroseKhanNaizi
View Post
clad he is not going anywhere .... bro read some tutorials
Yes I know, Some people want to script by asking


Re: how to add og loc house - ReD_DeVi - 24.06.2014

Hey I am learning


Re: how to add og loc house - AroseKhanNiazi - 24.06.2014

so what did u learn for here ??


Re: how to add og loc house - ReD_DeVi - 25.06.2014

Quote:
Originally Posted by Clad
View Post
This for your textdraw.
pawn Code:
format(versions, sizeof(versions),"Total accounts: %d / Last login: %s", enregistre, dernier);
Put this in the top.
pawn Code:
new enregistre;
new Dernier[64];
Move this to your script files.
pawn Code:
public SaveUtilisateurs()
{
    new coordsstring[128];
    format(coordsstring, sizeof(coordsstring), "%d,%s", Utilsys[Montantut],Dernier);
    new File: file2 = fopen("utilisateurs.ini", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
}
So everyone when register it saves his name
in >
pawn Code:
public OnPlayerRegister
Add this under.
pawn Code:
Dernier = playername3;
            SaveUtilisateurs();
So it load your informations for the textdraw
this must be
pawn Code:
public LoadUtilisateurs()
{
    new arrCoords[2][64];
    new strFromFile2[128];
    new File: file = fopen("utilisateurs.ini", io_read);
    if (file)
    {
        fread(file, strFromFile2);
        split(strFromFile2, arrCoords, ',');
        Utilsys[Montantut] = strval(arrCoords[0]);
        strmid(Dernier, arrCoords[1], 0, strlen(arrCoords[1]), 255);
        fclose(file);
    }
    return 1;
}
Do this step by step, Don't forget to add utilisateurs.ini in your scriptfiles otherwise accounts won't be saved, You still can see last login and register from it.
but where to add the textdraw
and it is showing this error
Code:
C:\Users\aman\Desktop\Land of Paradise 0.3x\gamemodes\gamemodes\BTRTDM.pwn(2560) : error 017: undefined symbol "Utilsys"
C:\Users\aman\Desktop\Land of Paradise 0.3x\gamemodes\gamemodes\BTRTDM.pwn(2560) : error 017: undefined symbol "Montantut"
C:\Users\aman\Desktop\Land of Paradise 0.3x\gamemodes\gamemodes\BTRTDM.pwn(2560) : error 029: invalid expression, assumed zero
C:\Users\aman\Desktop\Land of Paradise 0.3x\gamemodes\gamemodes\BTRTDM.pwn(2560) : fatal error 107: too many error messages on one line



Re : how to add og loc house - Clad - 25.06.2014

Sorry for the late reply.
pawn Code:
new Utilsys[dUtil];
pawn Code:
enum dUtil
{
    Montantut,
};