Jump to content

Andu Marian

Members
  • Posts

    11
  • Joined

  • Last visited

Andu Marian's Achievements

Noob

Noob (1/14)

0

Reputation

  1. a zis cineva ca vreau sa deschid server? A , si tu la inceput erai foarte bun , ce sa zic :/
  2. http://pastebin.com/FcQQvZga Nu se pune text-ul vip pe masina , am incercat mai multe chestii si sa pun alta comanda dar cand pun cealalta comanda se pune text si cand pun alt text se pune peste .
  3. Nu reusesc sa fac sa se vada /vipname-ul pe masina :/
  4. CMD:confiscate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(IsACop(playerid)) { if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_WHITE, "{3385FF}You are not on Duty."); new x_nr[15],giveplayerid,string[256],giveplayer[25],sendername[25]; if(sscanf(params, "us[15]",giveplayerid,x_nr)) { SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/confiscate <Name/Playerid> <Item>"); SendClientMessage(playerid, COLOR_WHITE, "Items: Licence, Drugs, Materials, Weapons."); return 1; } GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer)); if(strcmp(x_nr,"licence",true) == 0) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { format(string, sizeof(string), "* %s has confiscated %s's driving license.", sendername, giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendTeamMessage(8, COLOR_LIGHTBLUE, string); SendTeamMessage(3, COLOR_LIGHTBLUE, string); SendTeamMessage(2, COLOR_LIGHTBLUE, string); SendTeamMessage(1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "You have confiscated %s's driving license.", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "%s has confiscated your driving license.", sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); PlayerInfo[giveplayerid][pCarLicSuspend] = 2; PlayerInfo[giveplayerid][pCarLic] = 0; PlayerInfo[giveplayerid][pCarLicT] = 0; Update(giveplayerid, pCarLicSuspendx); new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `DLonfiscate`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCommands],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); } else return SendClientMessage(playerid, COLOR_WHITE,"{FFFFCC}This player is not near you."); } am facut asa , dar in panel la licente confiscate mi se pune din 2 in 2 , adica de la 0 daca confisc o licenta mi se pune 2 licente .
  5. am incercat sa fac asa , am adaugat la urm comanda : new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Tickets`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCommands],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); e ok ?
  6. salut , as avea si eu nevoie de ajutor la setarea cmd:ticket cand un player da ticket sa se actualizeze pe panel in raport MD:ticket(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not on Duty."); new giveplayerid,moneys,result[50],giveplayer[25],sendername[25],string[128]; if(sscanf(params, "uis[50]",giveplayerid,moneys,result)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/ticket <Name/Playerid> <Amount of Money> <Reason>"); if(moneys < 1 || moneys > 99999) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Ticket money can't be below 1 or higher then 99999."); if(IsACop(giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: You can't give a ticket to a Cop!"); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 8) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{B8FFDB}* You gave %s a Ticket costing $%s, reason: %s", giveplayer, FormatNumber(moneys), result); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "{B8FFDB}* Officer %s has given you a Ticket costing $%s, reason: %s, type /accept ticket %d to accept it", sendername, FormatNumber(moneys), result,playerid); SendClientMessage(giveplayerid, COLOR_WHITE, string); TicketOffer[giveplayerid] = playerid; TicketMoney[giveplayerid] = moneys; new str[256]; return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a LSPD/LVPD member."); } else return SendClientMessage(playerid, COLOR_WHITE,"{FFFFCC}This player is not near you."); } } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); } return 1; }
  7. Din gamemode bigzone e luata ... dar nu merge
  8. cand dai /togsurf sa arunce playerii de pe masina , si cand dai iar /togsurf sa nu ii mai arunce
  9. salut , am si eu nevoie de comanda /togsurf , daca ma puteti ajuta , as fi recunoscator , nu am gasit-o nicaieri
  10. CMD:goto(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3) { new id,string[256],sendername[30],giveplayer[30]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/goto <Name/Playerid>"); { if(id != INVALID_PLAYER_ID) { new Float:ax,Float:ay,Float:az; GetPlayerPos(playerid,ax,ay,az); posxxx[playerid] = ax; posyyy[playerid] = ay; poszzz[playerid] = az; new Float:x, Float:y, Float:z; GetPlayerPos(id, x, y, z); new tmpcar = GetPlayerVehicleID(playerid); if (GetPlayerState(playerid) == 2) { SetVehiclePos(tmpcar, x, y+4, z); } else { SetPlayerPosEx(playerid,x,y+2, z); } SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id)); SetPlayerInterior(playerid, GetPlayerInterior(id)); if(InHouse[id] > 0) { InHouse[playerid] = InHouse[id]; if(strlen(housestring[inHouse[playerid]]) > 0) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, housestring[inHouse[playerid]]); } } if(InHQ[id] > 0) { InHQ[playerid] = InHQ[id]; } if(InBussines[id] > 0) { InBussines[playerid] = InBussines[id]; } GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerName(id,giveplayer,sizeof(giveplayer)); format(string,sizeof(string),"You have been teleported to %s.",giveplayer); SendClientMessage(playerid, COLOR_GRAD1, string); format(string,sizeof(string),"Admin %s teleported to you.",sendername); SendClientMessage(id, COLOR_GRAD1, string); format(string,sizeof(string),"AdmCmd: %s used /goto on %s.",sendername,giveplayer); if(PlayerInfo[id][pAdmin] > 0 || PlayerInfo[id][pHelper] > 0) { ABroadCast(COLOR_YELLOW,string,1); } Adminlog(string); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); } } else { SendClientMessage(playerid, COLOR_WHITE, "{5CAD5C}Error: Your admin/helper level isn't high enough to use this command."); } return 1; } asa arata comanda mea de goto , daca ai putea sa-mi zici unde sa inlocuiesc, multumesc
  11. SAlut , as dori si eu doua comenzi daca mi le puteti face , una care sa fie cmd:vehname [ /vehname] - sa pot afla id-ul de la masina respectiva sa dau /spawncar si una cand dai /goto sa te bage in masina celui la care ai dat /goto
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

moduri samp