MassiveOG Posted September 2, 2017 Posted September 2, 2017 Mergem in pawno #define pRMutedx (sr vostru) Mergem la Pinfo si scriem. pRMuted, Facem un case case pRMutedx: { mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `RMuted`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pRMuted], PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,var,"",""); De aici v descurcati Ca nu dau mura in gura la toti nobi. CMD:rmute(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pScripter] >= 1) { new id,time,sendername[30],giveplayer[30],string[256]; if(sscanf(params, "ud", id, time)) { SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/rmute <Name/Playerid> <Minutes>"); return 1; } else { if(IsPlayerConnected(id)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(id, giveplayer, sizeof(giveplayer)); PlayerInfo[id][pRMuted] = time * 60; Update(id,pRMutedx); format(string, sizeof(string), "%s has muted you on /report for %d minutes.", sendername, time); SendClientMessage(id,COLOR_WHITE,string); format(string, sizeof(string), "%s has been muted from /report by %s for %d minutes.", giveplayer, sendername, time); ABroadCast(COLOR_RED,string,1); format(string, sizeof(string), "You have muted %s for %d minutes.", giveplayer, time); SendClientMessage(playerid,COLOR_WHITE,string); } else return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated."); } } return 1; } 1 Quote
Un4m3d_Hokage Posted September 2, 2017 Posted September 2, 2017 =)))))))))))))))))))))) +1 De aici v descurcati Ca nu dau mura in gura la toti nobi. Quote
The Legend Sh4dow Posted September 2, 2017 Posted September 2, 2017 Tu poti sa numesti asa ceva un tutorial? Nu ai explicat absolut nimic, nu toti stiu sa lucreze in MySQL, nici nu este bine si folosesti niste variabile doar pentru un GM de unde ai dat copy-paste la asta. 1 Quote
Prodan Posted September 3, 2017 Posted September 3, 2017 explica mi pas cu pas pls ca vin obosit de la ferma si vreau sa dau un /eat cand mai invat sa scriptez Quote
The Legend Sh4dow Posted September 4, 2017 Posted September 4, 2017 explica mi pas cu pas pls ca vin obosit de la ferma si vreau sa dau un /eat cand mai invat sa scriptez Oricum, cu explicatia data de el, sa nu te mire daca devii expert in Scripting :D Quote
Prodan Posted September 5, 2017 Posted September 5, 2017 Oricum, cu explicatia data de el, sa nu te mire daca devii expert in Scripting :D :lol: :lol: :lol: :lol: :lol: Quote
Seraphim Benis Posted September 8, 2017 Posted September 8, 2017 explica mi pas cu pas pls ca vin obosit de la ferma si vreau sa dau un /eat cand mai invat sa scriptez Quote
Droom Rpg Posted September 9, 2017 Posted September 9, 2017 Ai luat comanda dintr-un gamemode si ai postat-o aici. Asta nu e tutorial, daca te ducea capul puneai codurie intr-un "code". Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.