Sollace
-
Posts
19 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Sollace
-
-
10/10 Dar mai ai de lucrat la el..
-
Nu am inteles nimic:|
-
Am rezolvat,puteti da T/C
-
Incearca
[pawn]if(strcmp(cmd, "/makemoneybag", true) == 0 || strcmp(cmd, "/moneybag", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(playerVariables[playerid][pAdminLevel] < 6)
{
return SendClientMessage(playerid, GREY, " You are not authorized to use this command.");
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/makemoneybag [amount]");
new amount = strval(tmp);
if(amount < 1) return SendClientMessage(playerid, WHITE, "cannot go below 1.");
new Float:X,Float:Y,Float:Z;
new location[MAX_ZONE_NAME];
GetPlayerPos(playerid,X,Y,Z);
CreateMoney(X, Y, Z, amount);
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPosEx(playerid, X, Y-2, Z);
}
SendClientMessage(playerid, GREY1,"* Money bag created.");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
format(string, sizeof(string), "WARNING: %s has created a money bag worth $%d in %s (%0.2f, %0.2f, %0.2f).", sendername, amount, location, X, Y, Z);
SendClientMessage(playerid, RED, string);
format(string, sizeof(string), "{FF6347}%s has hidden a money bag in %s worth $%d!", sendername, location, amount);
SendClientMessageToAll(LIGHTRED, string);
return 1;
}
}[/pawn]
-
Nu mai trebuie,am rezolvat singur.:P
-
Nick: Sollace
Problema: Am creat un gamemode,i-am adaugat cateva sisteme,iar acum trebuie sa fac sistemul de admin...Am adaugat niste defin-uri,iar cand dau compile imi da Pawno Compile Library s-a oprit!Stiu ca asta da doar atunci cand sunt 20+ erori.
Erori / warnings:
Lini/script:[pawn]//=========================================Includ-uri/Defin-uri========================================//
#define MODE_NAME "hG Base"
#include <YSI\y_ini>
#include <a_samp>
#include <zcmd>
//========================================Defin-uri Importante=============================================//
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define MODE_NAME "hG Base"
#define PATH "Users/%s.ini"
//=====================================Defin-uri Culori====================================================//
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
native WP_Hash(buffer[],len,const str[]);
//====================================Enum-uri===============================================================//
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths,
pHelper,
pTutorial,
pGun1,
pGun2,
pGun3
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new pAdmin[MAX_PLAYERS];
//====================================Forward-uri si Public-uri=================================================================//
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Helper",PlayerInfo[playerid][pHelper]);
INI_Int("Helper",PlayerInfo[playerid][pHelper]);
INI_Int("Tutorial",PlayerInfo[playerid][pTutorial]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
return 1;
}
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Scrie-ti parola aici pentru a te LOGA!","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"Scrie-ti parola ta aici pentru a de InRegistra!","Register","Quit");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new hPassword[ 129 ] ;
WP_Hash( hPassword, sizeof( hPassword ), inputtext ) ;
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File,"Password",hPassword);
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Helper",0);
INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Gun1",0);
INI_WriteInt(File,"Gun2",0);
INI_WriteInt(File,"Gun3",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Te-ai inregistrat cu SUCCES pe serverul hGaming RPG!","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
new hPassword[ 129 ] ;
WP_Hash( hPassword, sizeof( hPassword ), inputtext ) ;
if(!strcmp(hPassword, PlayerInfo[ playerid ][ pPass ], false ) )
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Te-ai logat cu SUCCES pe serverul hGaming RPG! ","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Ai introdus o parola gresita!\n"COL_WHITE"Scrie parola ta in casuta de mai jos pentru a te LOGA!","Login","Quit");
}
return 1;
}
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Helper",PlayerInfo[playerid][pHelper]);
INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
INI_WriteInt(File,"Gun1",PlayerInfo[playerid][pGun1]);
INI_WriteInt(File,"Gun2",PlayerInfo[playerid][pGun2]);
INI_WriteInt(File,"Gun3",PlayerInfo[playerid][pGun3]);
INI_Close(File);
return 1;
}
public OnGameModeInit()
{
SetGameModeText( "hGaming Base" ) ;
}
//====================================Stock-uri=========================================================================================//
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
//===================================Comenzi====================================================================================================//
CMD:makeadmin(playerid,params[])
{
if(IsPlayerAdmin(playerid)) return
{
if(sscanf(params,"ui",ID,admin)) return SendClientMessage(playerid,COLOR_RED,"Foloseste /makeadmin [iD] [level].");
else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_RED,"Playerul nu este conectat.");
else if(admin > 6) return SendClientMessage(playerid,COLOR_RED,"Levelul maxim este 6.");
else
{
new str[70],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];new admin;
PlayerInfo[playerid][pAdmin] = admin;
GetPlayerName(playerid,aname,sizeof(aname));
GetPlayerName(ID,name,sizeof(name));
format(str,sizeof str,"I-ai lui %s admin level %i.",name,admin);
SendClientMessage(playerid,COLOR_RED,str);
format(str,sizeof str,"%s ti-a dat admin level %i.",aname,admin);
SendClientMessage(ID,COLOR_RED,str);
}
}else return SendClientMessage(playerid,COLOR_RED,"Trebuie sa fi logat cu RCON.");
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?:Da.....
-
Cine se ofera sa ma ajute sa ii bag sistem de admini?))))(Am incercat eu sa ii bag dar imi da 20+ erori:]])
-
-
Titlul:hGaming Base
Descriere: Acesta este un sistem de Register/Login Pentru serverele de RPG/GF!
Poze: http://imgur.com/6QT06ja,8roubP8
Link Download: Download aici
PS:Sa nu va vad cu post-uri de genul "ai luat de alt undeva"
Daca v-am ajutat apasati pe +1
Am adaugat versiunea 2!
News:Added Admin SyStem
:Added Helper System(Bug-uit)Rezolv in V3
Download V2 -
Downloadeaza includeul ini.
1.Am rezolvat,fara include
2.Am bagat totul pe WhirlPool
-
Nu stii sa scoti comanda /rac si sa modifici /vpark?
-
Nick:Sollace
Problema:Am inceput sa fac un gamemode de la 0 si am primit urmatoarea eroare
Erori / warnings:[pawn]E:\samp03\pawno\include\YSI\y_users/ini.inc(1091) : fatal error 111: user error: Whirlpool (or other) hash not found.[/pawn]
Lini/script:
Ai incercat sa rezolvi singur ?:Da....
-
Bai frate daca vreau sa testez cv il testez dar nu bag toate GF-Urile editate .
Bai,ai uitat cu cine vorbesti,mai tii minte pe SSR cand ai vrut sa ma ajuti la scripting,mi-ai cerut GM Cumparat de la GameR,ti-am dat versiunea de pe net,si ti-am zis sa bagi ceva,ai zis ca nu ai timp,nu stii pic de scripting,Nobule!
-
Comanda "/Acreatecar" Este Acum la admin 1338!
-
Frumos , se putea si mai bine , lipsesc anumite imbunatatiri , cum ar fi : /jobs in Dialog nu in Text cum este actual , /gps Lipseste , trebuie in Dialog si acesta , DS daca reusesti sa-l pui in Dialog si acesta esti tare , este 1 pe acest Forum , Fs-ul cu /engine este Enervant rau cu pornirea ,recomand sa bagi altu , baga si Speedometer-ul acesta : http://imgur.com/LjvzGU7 , La Banca este bug la acel Biz , pret 200kk de cumparare am bagat 200kk pe cont si zice ca nu am acesti bani , si faza cu GameManager am schimbat si am bagat numele meu , Am Compilat dar tot nu am acces la /acreatecar . Cam atat am descoperit pana acuma , daca mai gasesc dau Edit aici , Daca reusesti sa bagi ce am zis cel mai sus esti Cel mai tare si ai un +1 de la Mine !
Respect !
Dupa cum am spus,nu este in Totalitate Terminat,o sa incerc sa fac tot ce mi-ati spus in noua versiune ,mai astept Idei/Pareri!
-
Numa 2 ? ...
Sunt 3,si oricum vrei sa il testezi?Fa asta pe PC-ul tau,ti-e lene?
-
Poze ?
Are chiar acolo Poze: Click here
Dai pe Click Here si te redirectioneaza la site-ul cu poze..
-
X-Arena The Goodfather
in Gamemode-uri
Posted
Frumusel.