-
Posts
62 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Davidoff7776
-
-
Acum 10 minute, Mister a spus:
Cauta la finalul gamemodeului stock setplayercheckpointex sau public setplayer.... ori simplu trebuie sa fie o functie daca nu stii cum arata o functie nu prea mai are rost sa incerci. In primul meu comentariu este un stock cu parametri asa ar trebui sa arate si la tine
poftim
function SetPlayerCheckpointEx(playerid, Float:x, Float:y, Float:z, Float:size) { SetPlayerCheckpoint(playerid, x, y, z, size); CheckpointPos[playerid][0] = x; CheckpointPos[playerid][1] = y; CheckpointPos[playerid][2] = z; return 1; }
-
Acum 9 minute, Cosmink47 a spus:
nu l-ai configurat bine
<?php if(!defined('RPG')) return; date_default_timezone_set('Europe/Bucharest'); DB::$db['mysql'] = [ 'host' => '127.0.0.1', 'username' => 'root', 'password' => '', 'dbname' => 'burned' ]; Config::$data = (object) [ 'site_name' => 'LocalHost | UCP', 'url' => 'http://localhost/panel/', 'url_forum' => '#', ]; DB::$tbl = (object) [ 'a' => (object) [ 'tblname' => 'users', 'id' => 'id', 'name' => 'name', 'password' => 'password', 'register' => 'RegisterDate', 'hplayed' => 'ConnectedTime', 'mplayed' => 'HoursMonth', 'status' => 'Status', 'member' => 'Member', 'skin' => 'CChar', 'laston' => 'lastOn', 'admin' => 'Admin', 'helper' => 'Helper', 'leader' => 'Leader', 'warns' => 'Warnings', 'fwarn' => 'FWarn', 'fpunish' => 'FPunish', 'rank' => 'Rank', 'level' => 'Level', 'respect' => 'Respect', 'job' => 'Job', 'email' => 'Email', 'married' => 'Propose', 'premium' => 'Premium', 'car' => 'CarLic', 'fly' => 'FlyLic', 'boat' => 'BoatLic', 'fish' => 'FishLic', 'gun' => 'GunLic', 'money' => 'Money', 'bank' => 'Bank', 'phnumber' => 'PhoneNr', 'mats' => 'Materials', 'drugs' => 'Drugs', 'coins' => 'GoldPoints', 'ban' => 'Banned', ], 'h' => (object) [ 'tblname' => 'houses', 'owner' => 'Owner', 'text' => 'Discription', 'price' => 'Value', ], 'v' => (object) [ 'tblname' => 'cars', 'model' => 'Model', 'price' => 'Value', 'owner' => 'Owner', 'km' => 'KM', ], 'ds' => (object) [ 'tblname' => 'dsveh', 'model' => 'Model', 'price' => 'Price', 'speed' => 'MaxSpeed', ], 'b' => (object) [ 'tblname' => 'bizz', 'owner' => 'Owner', 'text' => 'Message', 'price' => 'BuyPrice', 'entercost' => 'EntranceCost', ], 'sb' => (object) [ 'tblname' => 'sbizz', 'owner' => 'Owner', 'text' => 'Discription', 'price' => 'BuyPrice', 'entercost' => 'EntranceCost', ], 'ban' => (object) [ 'tblname' => 'banlog', 'banned' => 'player', 'admin' => 'admin', 'time' => 'day', 'reason' => 'reason', 'expire' => 'day', ], 't' => (object) [ 'tblname' => 'tickets_panel', 'id' => 'ID', 'name' => 'Nickname', 'ticket' => 'Ticket', 'status' => 'Status', 'created' => 'Created', ], 'comm' => (object) [ 'tblname' => 'commentaries', 'id' => 'ID', 'name' => 'Nickname', 'comment' => 'Comment', 'time' => 'Time', 'category' => 'Category', 'cat_id' => 'Cat_id', ], 'banrq' => (object) [ 'tblname' => 'unban_req', 'id' => 'ID', 'name' => 'User_ID', 'status' => 'User_Status', ], 'factions' => (object) [ 'tblname' => 'factions', 'id' => 'ID', 'level' => 'Level', 'app' => 'App', ], 'fac_ques' => (object) [ 'tblname' => 'apply_ques', 'id' => 'ID', 'faction' => 'Faction', 'quest' => 'Questions', 'tquest' => 'TQuestions', ], 'fac_app' => (object) [ 'tblname' => 'app_factions', 'id' => 'ID', 'name' => 'UserID', 'text' => 'Text', 'faction' => 'Faction', 'status' => 'Status', 'created' => 'Time', ], 'lh' => (object) [ 'tblname' => 'leadhelp_req', 'id' => 'ID', 'name' => 'UserID', 'first' => 'Text1', 'second' => 'Text2', 'category' => 'Category', 'status' => 'Status', 'created' => 'Created', 'faction' => 'Faction', ], 'a_p' => (object) [ 'tblname' => 'admin_panel', 'id' => 'ID', 'category' => 'Category', 'time' => 'Time', 'status' => 'Status', ], ];
-
-
Acum 8 minute, Mister a spus:
Nu, posteaza functia ta setplayercheckpointex, in ea vei adauga daca nu este deja ce am zis eu
Te rog sa nu te superi dar care e aia?
-
Acum 11 ore, Mister a spus:
La inceputul gamemodeului new AdminCP[MAX_PLAYERS][3];
CTRL+H SetPlayerCheckpoint si jos SetPlayerCheckpointEx pentru a inlocui toate funtiile de setare a checkpointurilor
la finalul gmului
stock SetPlayerCheckpointEx(playerid, Float:x, Float:y, Float:z, Float:size) { AdminCP[playerid][0] = x; AdminCP[playerid][1] = y; AdminCP[playerid][2] = z; return SetPlayerCheckpoint(playerid, x, y, z, size); }
iar pentru comanda sper ca stii cmd: gotocp si setplayerpoz AdminCP[playerid][0] , blabla[1], blabla[2]
Am o mica intrebare: Eu am gm-ul Burned si toate functiile SetPlayerCheckpoint sunt deja inlocuite cu SetPlayerCheckpointEx , iar daca fac cum ai zis tu vor deveni SetPlayerCheckpointExEx , este in regula?
-
Salut! Vreau sa-mi fac si eu comanda care sa ma teleporteze la checkpoint (nu la marker d-ala de pe mapa). As dori sa fie pentru admin 1 in sus si sa fie /gotocp. Multumesc anticipat!
-
Salut!Mi-am luat si eu gm-ul burned si ma intrebam daca merge sa= fac portforward avand in vedere ca am net de la digi si baza de date e pe mysql. Daca merge ajutati-ma deoarece pana acum n-am reusit.
-
Salut! Sunt un incepator in pawn/scripting si as dori daca puteti sa imi dati un gamemode(RPG) pe care pot incepe sa lucrez si cateva sfaturi ar fi bine-venite.
-
Imi poate da cineva gamemodul de la sv de samp Bugged(nu conteaza care dintre ele) sau macar ceva foarte asemanator?
-
Acum 7 minute, Mr.Pacefull a spus:
Verifica in gamemode care este levelul ce permite sa dai admin 4+, poti verifica in comanda makeadmin, posibil sa fie 7 sau 1339.
Uite aici comanda:
CMD:makeadmin(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 6 || EstiFondator(playerid))
{
new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/makeadmin` <Name/Playerid> <Admin Level>");
if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
if(IsPlayerConnected(id))
{
if(id != INVALID_PLAYER_ID)
{
GetPlayerName(id, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
SendClientMessage(id, COLOR_YELLOW, string);
format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
ABroadCast(COLOR_ADMIN,string,1);
HLChat(COLOR_ADMCHAT,string);
mysql_real_escape_string(string, escape);
PlayerInfo[id][pAdmin] = adminlevel;
if(adminlevel == 0)
{
AdminDuty[id] = 0;
}
new str[256];
mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
mysql_tquery(SQL,str,"","");
mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
mysql_tquery(SQL,str,"","");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
}
}
return 1;
}
-
Salut! Am descarcat acest server http://forum.bugged.ro/topic/202186-gamemode-by-s4urik-panel/. L-am bagat pe host. L-am conectat la mysql si la users mi-am setat admin 6. Dar cand intru pe server si ii vr sa-i dai prietenului meu admin 6 imi zice "Only founders can make admin higher than 4" tin sa mentionez ca am folosit comanda /makeadmin si m-am conectat cu rcon.
ajutor comanda
in Ajutor Scripting
Posted · Edited by Davidoff7776
am primit erorile astea: