TopGun
Membru-
Posts
45 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by TopGun
-
Pai pune si tu la if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Godfather %s: %s. )) **", sendername, result); } la ** Godfather %s .... pune asa ** Godfather {FF0000}%s: {FFFFFF}%s. Eu ti-am dat un exemplu fa cum vrei culorile, le gasesti pe http://wiki.sa-mp.com/wiki/Hex_colours
-
Nu-mi apar portile de la PD cand dai /gate ele se aud ca se deschid dar NU LE VAD! objectele . Si nici la eventurile de ex: LBS event e undeva pe apa si am niste garduri si nici alea nu se vad.
-
Da am bagat si sunt cele noi, ma refer la streamer
-
degeaba tot asa nu se vad.
-
Ma omule asta il am si eu si l-am bagat Ajutama cu warningurile alea si spuneti-mi de ce nu se vad /gate de la PD .
-
Posteaza si tu comanda /stats
-
Am facut asta si tot nu se vad obiectele + ramane warningurile alea. Am scos pluginul incognito si sscanf
-
Cum rezolv astea? Am bagat intr-un GM streamerul de la incognito si sscanf Si inca ceva eu am pe server /gate la PD si altele dar nu mi se vad. Adica cand dau /gate imi scrie sus ca se deschide poarta dar eu nu VAD POARTA. DE AIA AM BAGAT PLUGINURILE ASTEA. Dati-mi o rezolvare.
-
Am o problema la /rb nu mi se vad. Am descarcat alte GM de pe NET si /rb la alea merg dar pe GM asta care il am nu merge. Vreo rezolvare? /rb [pawn] if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0) { if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!"); if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one."); if (roadblocktimer != 0) return SendClientMessage(playerid, COLOR_GREY, "Please wait before trying to spawn another roadblock!"); new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180); SetPlayerPos(playerid, X, Y, Z+4); GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5); SendClientMessage(playerid, COLOR_GREEN, "Roadblock deployed successfully, type /rrb or /roadunblock to remove it."); roadblocktimer = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "HQ: A roadblock has been deployed by %s.", sendername); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1) { //SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0); SendClientMessage(i, TEAM_BLUE_COLOR, string); if (PlayerInfo[pRank] >= 5 && PlayerInfo[pMember] || PlayerInfo[pLeader] == 1) { SendClientMessage(i, COLOR_YELLOW, "You can remove all roadblocks by typing /rrball"); } } } } SetTimer("ResetRoadblockTimer", 60000, false); return 1; }[/pawn] /rrb [pawn] if(strcmp(cmdtext, "/roadunblock", true)==0 || strcmp(cmdtext, "/rrb", true)==0) { if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) { SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!"); return 1; } if (PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "You have to be rank 2 to use this command!"); return 1; } if (PlayerInfo[playerid][pRoadblock] == 0) { SendClientMessage(playerid, COLOR_GREY, "You haven't deployed a roadblock!"); return 1; } RemoveRoadblock(playerid); SendClientMessage(playerid, COLOR_GREEN, "Roadblock removed successfully."); return 1; }[/pawn] /rrball [pawn] if(strcmp(cmdtext, "/roadunblockall", true)==0 || strcmp(cmdtext, "/rrball", true)==0) { if (PlayerInfo[playerid][pRank] >= 5 && PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[pRoadblock] != 0) { RemoveRoadblock(i); } } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "HQ: All roadblocks in the area are to be disbanded immediately by order of %s.", sendername); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1) { SendClientMessage(i, TEAM_BLUE_COLOR, string); } } } } else { SendClientMessage(playerid, COLOR_GREY, "You have to be rank 5+ or a police leader to remove all roadblocks!"); } return 1; }[/pawn]
-
Acuma am schimbat si e pe dos am pus din nou /rb si cand dau /rb nu apare dar cand dau /rrball (removeroadblockall) imi apare ) ce naiba sa mai fac
-
gf.pwn(62654) : error 001: expected token: "#endif", but found "-end of file-" Am rezolvat cu foreach acuma cu /rb de la PD , de ce nu se vad?
-
linia era 62295 dar nu e nicio comanda. #define foreach(%1,%2) for (new %2 = 0; %2 < sizeof(%1); %2++ ) asta?
-
http://wiki.sa-mp.com/wiki/Hex_colours
-
warning 201: redefinition of constant/macro (symbol "foreach(%1,%2)") Aveti vre-o rezolvare? Si inca ceva cand dau /rb la PD sa pun roadblockurile nu mi se vad nustiu ce sa intamplat am modificat acolo comanda /rb si tot nu merge. Aveti si pentru asta o rezolvare? COMANDA: [pawn] if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0) { if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!"); if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one."); if (roadblocktimer != 0) return SendClientMessage(playerid, COLOR_GREY, "Please wait before trying to spawn another roadblock!"); new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180); SetPlayerPos(playerid, X, Y, Z+4); GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5); SendClientMessage(playerid, COLOR_GREEN, "Roadblock deployed successfully, type /rrb or /roadunblock to remove it."); roadblocktimer = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "HQ: A roadblock has been deployed by %s.", sendername); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1 || PlayerInfo[pAdmin] == 1338 || PlayerInfo[pAdmin] == 1339 ) { //SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0); SendClientMessage(i, TEAM_BLUE_COLOR, string); if (PlayerInfo[pRank] >= 5 && PlayerInfo[pMember] || PlayerInfo[pLeader] == 1) { SendClientMessage(i, COLOR_YELLOW, "You can remove all roadblocks by typing /rrball"); } } } } SetTimer("ResetRoadblockTimer", 60000, false); return 1; }[/pawn]
-
[shadow=red,left]mai raspunde cineva?[/shadow]
-
[pawn]//------------------------------------------------------------------------------------------------------ if(strcmp(cmd, "/bonusmis", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 1{737373} *** {FB0500}10 {07B584}mission passed - {FFB700}100.000$ + 5 respect points."); SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 2{737373} *** {FB0500}30 {07B584}mission passed - {FFB700}250.000$ + 15 respect points."); SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 3{737373} *** {FB0500}50 {07B584}mission passed - {FFB700}500.000$ + 30 respect points."); SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 4{737373} *** {FB0500}100 {07B584}mission passed - {FFB700}1.000.000$ + 1 level."); SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 5{737373} *** {FB0500}250 {07B584}mission passed - {FFB700}3.000.000$ + 1 level + 50 respect points."); new misiuni = PlayerInfo[playerid][pCompMission]; if ( PlayerInfo[playerid][pCompMission] < 10) { SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 1."); format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/10{FFFFFF}]", misiuni); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if ( PlayerInfo[playerid][pCompMission] < 30) { SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 2."); format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/30{FFFFFF}]", misiuni); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if ( PlayerInfo[playerid][pCompMission] < 50) { SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 3."); format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/50{FFFFFF}]", misiuni); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if ( PlayerInfo[playerid][pCompMission] < 100) { SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 4."); format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/100{FFFFFF}]", misiuni); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if ( PlayerInfo[playerid][pCompMission] < 250) { SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 5."); format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/250{FFFFFF}]", misiuni); SendClientMessage(playerid, COLOR_GREY, string); return 1; } } return 1; }[/pawn]
-
la ce mia dat alexic acolo a uitat sa puna o paranteza doar atata ca-mi dadea o erroare
-
[pawn]echo Executing Server Config... lanmode 0 rcon_password caca maxplayers 50 port 7777 hostname gamemode0 gf 1 filterscripts JunkBuster rRace ceas anti-flood announce 0 query 1 plugins streamer.dll chatlogging 0 weburl www. onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S][/pawn]
-
Nu ai inteles ce am vrut sa-ti spun nici nu mi-ai dat bine o treaba acolo imi dadea 1 error dar am facut-o eu.