Posts: 518
Threads: 59
Joined: Aug 2012
Ok let me check and i had send you a request on skype please accepet it....
Posts: 518
Threads: 59
Joined: Aug 2012
when i typed ogloc then it is falling from up what to do ?
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
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);
Posts: 518
Threads: 59
Joined: Aug 2012
the ogloc command itself i should
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
the ogloc command itself i should
|
Yes, Under SetPlayerPos.
Posts: 518
Threads: 59
Joined: Aug 2012
then how to make it as class selection when i added that addplayerclass then it is showing as cj
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
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 ?
Posts: 518
Threads: 59
Joined: Aug 2012
i want og Loc's house as class selection
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
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
Posts: 518
Threads: 59
Joined: Aug 2012
when i tryed it is showing cj skin
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
clad he is not going anywhere .... bro read some tutorials
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by AroseKhanNaizi
clad he is not going anywhere .... bro read some tutorials
|
Yes I know, Some people want to script by asking
Posts: 518
Threads: 59
Joined: Aug 2012
Posts: 518
Threads: 59
Joined: Aug 2012
Quote:
Originally Posted by Clad
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 > 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
Posts: 1,241
Threads: 67
Joined: Dec 2013
Sorry for the late reply.