Jump to content

CRGAdv

Member
  • Posts

    187
  • Joined

  • Last visited

Everything posted by CRGAdv

  1. Misto, n-am csz. CMD:salamregelemeu(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 0) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); new id,adminlevel,string[200]; if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "{008080}USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>"); if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat."); if(adminlevel < 0 || adminlevel > 7) return SCM(playerid, COLOR_GREY, "Invalid admin level! (0-6)"); if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid, COLOR_GREY, "Nu poti executa aceasta comanda pe acel player!"); format(string, sizeof(string), "Ai fost promovat la admin %d de %s.", adminlevel, GetName(playerid)); SendClientMessage(id, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "I-ai setat lui %s admin %d.", GetName(id),adminlevel); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "AdmCmd: %s i-a setat lui %s admin %d.", GetName(playerid),GetName(id),adminlevel); if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,4); if(adminlevel == 0) { PlayerInfo[id][pAW] = 0; UpdateVar(id, "AW", 0); SpecFaction[id] = 0; StopFly(playerid); UsedFly[playerid] = 0; SetPlayerHealthEx(playerid, 99); SendClientMessage(playerid, 0xFFADADFF, "Fly mode off."); } else finishAchievement(id, 27); PlayerInfo[id][pAdmin] = adminlevel; new query[180]; if(adminlevel >= 1) format(query,sizeof(query),"UPDATE users SET `Admin`='%d', `Security`='%s',`HelpedPlayers`='0' WHERE `ID`='%d'",PlayerInfo[id][pAdmin], MD5_Hash(DEFAULT_PASSWORD), PlayerInfo[id][pSQLID]); else format(query,sizeof(query),"UPDATE users SET `Admin`='%d' WHERE `ID`='%d'",PlayerInfo[id][pAdmin],PlayerInfo[id][pSQLID]); mysql_query(SQL,query); SetPVarInt(id, "SecurityPlayer", 0); return 1; }
  2. Vere, ce-ai patit? Am zis pur si simplu 'romana', nu l-am injurat sau jignit etc, doamne.. EDIT: Noi de unde sa stim ca e surdo-mut?Suntem Nostradamus?
  3. cauta: function FactionsSpawns(playerid) { si modifici: SetPlayerPosEx(playerid, 1673.7228,1448.0596,10.7846); cu coordonatele tale. SetPlayerFacingAngle(playerid, 271.8083);
  4. Intrebare: Cum pot sa modific speedo pe gm burned? Gen sa fie ca pe B-hood. Dau +2. Functia: function Checkvehinfo(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { if(InRaceArena[playerid] == 1 && !RaceStarted) return true; new engine, lights, alarm, doors, bonnet, boot, objective, string[256]; GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); if(CarInfo[FindSpawnID(GetPlayerVehicleID(playerid))][cID] != -2 && FindSpawnID(GetPlayerVehicleID(playerid)) != 0 && !IsAPlane(GetPlayerVehicleID(playerid))) { if(!IsABike(GetPlayerVehicleID(playerid)) && !IsAPlane(GetPlayerVehicleID(playerid))) format(string, sizeof string, "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Odometer: ~r~%0.2f~n~Radio: ~r~%s~n~~r~%s~n~Fuel: ~r~%s%d%s", Carspeed(playerid), CarInfo[FindSpawnID(GetPlayerVehicleID(playerid))][KM], GetVehicleRadio(GetPlayerVehicleID(playerid)), (doors == 1) ? ("~w~Doors: ~r~Locked~w~~h~") : ("~w~Doors: ~g~Unlocked~w~~h~"), (Gas[GetPlayerVehicleID(playerid)] > 20) ? ("") : ("~r~"), Gas[GetPlayerVehicleID(playerid)], "%"); } else { if(!IsABike(GetPlayerVehicleID(playerid)) && !IsAPlane(GetPlayerVehicleID(playerid))) format(string, sizeof string, "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Radio: ~r~%s~n~~r~%s~n~Fuel: ~r~%s%d%s", Carspeed(playerid), GetVehicleRadio(GetPlayerVehicleID(playerid)), (doors == 1) ? ("~w~Doors: ~r~Locked~w~~h~") : ("~w~Doors: ~g~Unlocked~w~~h~"), (Gas[GetPlayerVehicleID(playerid)] > 20) ? ("") : ("~r~"), Gas[GetPlayerVehicleID(playerid)], "%"); } PlayerTextDrawSetString(playerid, Speedo, string); PlayerTextDrawShow(playerid, Speedo); } return 1; }
×
×
  • Create New...