how to add og loc house
#21

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

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

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);
Reply
#24

the ogloc command itself i should
Reply
#25

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

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

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 ?
Reply
#28

i want og Loc's house as class selection
Reply
#29

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
Reply
#30

when i tryed it is showing cj skin
Reply
#31

clad he is not going anywhere .... bro read some tutorials
Reply
#32

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
Reply
#33

Hey I am learning
Reply
#34

so what did u learn for here ??
Reply
#35

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
Reply
#36

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


Forum Jump:


Users browsing this thread: 1 Guest(s)