SLEEDKOV Posted August 13, 2016 Share Posted August 13, 2016 (edited) Am vrut sa fac un gamemode de la 0 si imi da cateva erori, gm-ul e facut de la grand larceny Poze:https://postimg.org/image/pyhuop9gb/ Edited August 13, 2016 by SLEEDKOV Link to comment Share on other sites More sharing options...
Alynush02 Posted August 13, 2016 Share Posted August 13, 2016 (edited) Daca habar n-ai de scripting, incearca sa editezi un gamemode deja facut... n-ai ce cauta intr-un gamemode de la 0. Iti recomand gamemode-ul saints pentru inceput. Edited August 13, 2016 by Un4m3d Link to comment Share on other sites More sharing options...
CrImA Posted August 13, 2016 Share Posted August 13, 2016 Daca habar n-ai de scripting, incearca sa editezi un gamemode deja facut... n-ai ce cauta intr-un gamemode de la 0. Iti recomand gamemode-ul saints pentru inceput. Cum a zis si el, daca chiar vrei sa continui posteaza liniile la care iti da eroare. Link to comment Share on other sites More sharing options...
SLEEDKOV Posted August 13, 2016 Author Share Posted August 13, 2016 C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(1) : error 010: invalid function or declaration C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(40) : warning 217: loose indentation C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(47) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(50) : error 017: undefined symbol "COLOR_LIGHTRED" C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : warning 217: loose indentation C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : error 017: undefined symbol "bonus" C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 017: undefined symbol "PlayerInfo" C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : warning 215: expression has no effect C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 001: expected token: ";", but found "]" C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 029: invalid expression, assumed zero C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : fatal error 107: too many error messages on one line Link to comment Share on other sites More sharing options...
CrImA Posted August 13, 2016 Share Posted August 13, 2016 Ma refeream sa postezi ce ai scriptat in pawno, erorile le vedem si in poza. Link to comment Share on other sites More sharing options...
SLEEDKOV Posted August 14, 2016 Author Share Posted August 14, 2016 ok / #include <a_samp> ////////////////////////////////////////////// // ** Copyright © Cartman# ** // // ** All right reserved! ** // // ** Please not remove this credits. ** // ////////////////////////////////////////////// // ============> INCLUDES <============ // #include <a_samp> #define CARTMAN# COPYRITGHT_CREATOR #define VERSION 1.0.2 // ============> NEWS & ENUMS <============ // new Same_IP=0,Join_Stamp,ban_s[25],exceed=0; new var[MAX_PLAYERS] = {-1,...}, warns[MAX_PLAYERS] = {0,...}, bool:npc[MAX_PLAYERS] = {false,...}, MAX_PLAYERS_ = MAX_PLAYERS; enum LIST_ANTIFLOOD { lastCheck, floodRate } new AntiFlood_Data[MAX_PLAYERS][list_ANTIFLOOD]; // ============> PUBLICS & FUNCTIONS <============ // public OnFilterScriptInit() { for ( new playerid; playerid < MAX_PLAYERS; playerid++ ) { if ( IsPlayerConnected( playerid ) ) AntiFlood_InitPlayer( playerid ); } return 1; } public OnPlayerText(playerid, text[]) { assert( AntiFlood_Check( playerid ) ); if(strfind(text, "samp.", true) != -1 || strfind(text, "gta.", true) != -1 || strfind(text, "samp,", true) != -1 || strfind(text, "gta,", true) != -1 || strfind(text, "s-a-m-p.", true) != -1 || strfind(text, "g-t-a.", true) != -1 || strfind(text, "s-a-m-p,", true) != -1 || strfind(text, "g-t-a,", true) != -1 || strfind(text, "[a][m][p].", true) != -1 || strfind(text, "[g][t][a].", true) != -1 || strfind(text, "sampx.", true) != -1 || strfind(text, "gtax", true) != -1 || strfind(text, ".ro", true) != -1 || strfind(text, ".com", true) != -1 || strfind(text, ".net", true) != -1 || strfind(text, ".org", true) != -1 || strfind(text, ".tk", true) != -1 || strfind(text, ",ro", true) != -1 || strfind(text, ",com", true) != -1 || strfind(text, ",net", true) != -1 || strfind(text, ",org", true) != -1 || strfind(text, ",tk", true) != -1 || strfind(text, ".-r-o", true) != -1 || strfind(text, ".-c-o-m", true) != -1 || strfind(text, ".-n-e-t", true) != -1 || strfind(text, ".-o-r-g", true) != -1 || strfind(text, ".-t-k", true) != -1 || strfind(text, ":7777", true) != -1) { new sendername[MAX_PLAYER_NAME]; new string[64]; GetPlayerName(playerid, sendername, 24); format(string, 256, "SERVER: %s a fost deconectat, motiv: Reclama.", sendername); SendClientMessageToAll(COLOR_LIGHTRED, string); TogglePlayerControllable(playerid, 0); Kick(playerid); return 0; } COMMAND:bonus(playerid, params[]) { if(PlayerInfo[playerid][pLevel] == 1) { PlayerInfo[playerid][pLevel] = PlayerInfo[playerid][pLevel] + 10; SendClientMessage(playerid, COLOR_RED, "Ai primit level 10 ca bonus."); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 1000000; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); SendClientMessage(playerid, COLOR_RED, "Ai primit 1,000,000$ ca bonus."); } else SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii incepator pentru a primi bonusul."); return 1; } return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xFF0000FF, "* Bine ai venit pe serverul nostru!"); } if(CountIP(GetIP(playerid)) >= 6) return BanAll(playerid), 0; MAX_PLAYERS_ = playerid > MAX_PLAYERS_ ? playerid : GetHighestID(), npc[playerid] = bool:IsPlayerNPC(playerid), var[playerid] = SetTimerEx("BSS",2500,false,"i",playerid), warns[playerid] = 0; AntiFlood_InitPlayer( playerid ); new ConnIP[16]; GetPlayerIp(playerid,ConnIP,16); new compare_IP[16]; new number_IP = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerIp(i,compare_IP,16); if(!strcmp(compare_IP,ConnIP)) number_IP++; } } if((GetTickCount() - Join_Stamp) < Time_Limit) exceed=1; else exceed=0; if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1 ) { Same_IP++; if(Same_IP > SAME_IP_CONNECT) { Ban(playerid); Same_IP=0; } } else { Same_IP=0; } if(number_IP > IP_LIMIT) Kick(playerid); GetStampIP(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { MAX_PLAYERS_ = GetHighestID(playerid); if(npc[playerid]) npc[playerid] = false; if(var[playerid] != -1) { KillTimer(var[playerid]); var[playerid] = -1; } warns[playerid] = 0; return 1; } public OnPlayerCommandText( playerid, cmdtext[] ) { assert( AntiFlood_Check( playerid ) ); return 0; } public OnPlayerDeath( playerid, killerid, reason ) { assert( AntiFlood_Check( playerid ) ); return 1; } AntiFlood_Check( playerid, bool:inc=true ) { AntiFlood_Data[playerid][floodRate] += inc ? RATE_INC : 0; AntiFlood_Data[playerid][floodRate] = AntiFlood_Data[playerid][floodRate] - ( GetTickCount() - AntiFlood_Data[playerid][lastCheck] ); AntiFlood_Data[playerid][lastCheck] = GetTickCount(); AntiFlood_Data[playerid][floodRate] = AntiFlood_Data[playerid][floodRate] < 0 ? 0 : AntiFlood_Data[playerid][floodRate]; if ( AntiFlood_Data[playerid][floodRate] >= RATE_MAX ) { #if THRESOLD_ACTION == 1 new msg[64], name[MAX_PLAYER_NAME]; GetPlayerName( playerid, name, sizeof( name ) ); format( msg, sizeof( msg ), "SERVER: %s a primit ban pentru tentativa de flood.", name ); SendClientMessageToAll( 0xEE9911FF, msg ); Ban( playerid ); #elseif THRESOLD_ACTION == 2 new msg[64], name[MAX_PLAYER_NAME]; GetPlayerName( playerid, name, sizeof( name ) ); format( msg, sizeof( msg ), "SERVER: %s a primit ban pentru tentativa de flood.", name ); SendClientMessageToAll( 0xEE9911FF, msg ); Kick( playerid ); #else SendClientMessage( playerid, 0xC00000FF, "Stop flooding." ); #endif return false; } return true; } AntiFlood_InitPlayer( playerid ) { AntiFlood_Data[playerid][lastCheck] = GetTickCount(); AntiFlood_Data[playerid][floodRate] = 0; } forward OnPlayerTeamPrivmsg( playerid, text[] ); public OnPlayerTeamPrivmsg( playerid, text[] ) { assert( AntiFlood_Check( playerid ) ); return 1; } stock GetStampIP(playerid){ new S_IP[16]; Join_Stamp=GetTickCount(); GetPlayerIp(playerid,S_IP,16); format(ban_s, 16, "%s", S_IP); } stock CountIP(ip[]) { new c = 0; for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && !strcmp(GetIP(i),ip)) c++; return c; } forward BSS(playerid); public BSS(playerid) { new i = GetPlayerPing(playerid); if(i <= 0 || i >= 50000) { if(warns[playerid] >= 1) BanAll(playerid); else warns[playerid]++, var[playerid] = SetTimerEx("BSS",1500,false,"i",playerid); } return 0; } stock GetIP(playerid) { new ip[16]; GetPlayerIp(playerid,ip,sizeof(ip)); return ip; } stock BanAll(playerid) { new ip[32]; GetPlayerIp(playerid,ip,sizeof(ip)); for(new i = 0, p = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && !npc) { p = GetPlayerPing(i); if(i == playerid || !strcmp(ip,GetIP(i)) || p <= 0 || p >= 50000) { BanEx(i,"Bot"); if(var != -1) { KillTimer(var); var = -1; } } } format(ip,sizeof(ip),"banip %s",ip); return SendRconCommand(ip); } stock GetHighestID(exceptof = INVALID_PLAYER_ID) { new h = 0; for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && i != exceptof && i > h) h = i; return h; } //For Nex-AC v1.0 (0.3.7-R1) #if defined _nex_ac_lang_included #endinput #endif #define _nex_ac_lang_included new SUSPICION_1[] = "[Nex-AC] Suspicious player, ID %d. Reason code: %03d%s", SUSPICION_2[] = "[Nex-AC] Suspicious player, IP %s. Reason code: %03d%s", VERSION_WARNING[] = "[Nex-AC] The anticheat version is not compatible with the current SA-MP Server", CFG_OPENING_ERROR[] = "[Nex-AC] Error creating or opening %s!", #if defined DEBUG DEBUG_CODE_1[] = "[Nex-AC debug] ID %d exceeded %d flood attempts. Public ID: %d", DEBUG_CODE_2[] = "[Nex-AC debug] Invalid version by ID %d. Version: %s", DEBUG_CODE_3[] = "[Nex-AC debug] ID %d exceeded %d connections from 1 IP-address", DEBUG_CODE_4[] = "[Nex-AC debug] Bad RCON login by IP %s using password %s", DEBUG_CODE_5[] = "[Nex-AC debug] ID %d used NOP %s", #endif KICK_MSG[] = "You have been kicked on suspicion of using cheat programs (#%03d)", MAX_CONNECTS_MSG[] = "You have exceeded the maximum number of connections from 1 IP-address", UNKNOWN_CLIENT_MSG[] = "This version of the client is not compatible with the server version.", LOADED_MSG_1[] = " Anticheat Nex-AC loaded!", LOADED_MSG_2[] = " Anticheat version: %s", LOADED_MSG_3[] = " Author: Nexius", STATS_STRING_1[] = " Statistics anticheat Nex-AC", STATS_STRING_2[] = " Detected and prevented:", STATS_STRING_3[] = " %d cheating attempts", STATS_STRING_4[] = " %d hacking attempts", STATS_STRING_5[] = " %d crashing attempts", STATS_STRING_6[] = " %d flooding attempts", STATS_STRING_7[] = " %d attacks", STATS_STRING_8[] = " Total detected and punished %d cheaters"; if (strcmp(cmdtext, "/lock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"Only driver can lock the car doors."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, COLOR_GREY, "Vehicle locked!"); GetPlayerPos(playerid,X,Y,Z); PlayerPlaySound(playerid,1056,X,Y,Z); } else { SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle!"); } return 1; } (strcmp(cmdtext, "/unlock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"You must be the driver to unlock the doors."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, COLOR_GREY, "Vehicle unlocked!"); GetPlayerPos(playerid,X,Y,Z); PlayerPlaySound(playerid,1057,X,Y,Z); } else { SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle!"); } return 1; } if(strcmp(cmd, "/pay", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /pay [playerid] [amount]"); return 1; } giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /pay [playerid] [amount]"); return 1; } moneys = strval(tmp); if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { GivePlayerMoney(playerid, (0 - moneys)); GivePlayerMoney(giveplayerid, moneys); format(string, sizeof(string), "You gave %s(player: %d), $%d.", giveplayer,giveplayerid, moneys); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "You recieved $%d from %s(player: %d).", moneys, sendername, playerid); SendClientMessage(giveplayerid, COLOR_GREY, string); printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid); }else { SendClientMessage(playerid, COLOR_GREY, "Invalid transaction amount."); } }else { format(string, sizeof(string), "%d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GREY, string); } return 1; } if(strcmp(cmd, "/hitman", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]"); return 1; } giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]"); return 1; } moneys = strval(tmp); if(moneys > GetPlayerMoney(playerid)) { SendClientMessage(playerid, COLOR_RED, "You don't have enough money!"); return 1; } if(moneys < 1) { SendClientMessage(playerid, COLOR_YELLOW, "Hey what are you trying to pull here."); return 1; } if(IsPlayerConnected(giveplayerid)==0) { SendClientMessage(playerid, COLOR_RED, "No such player exists."); return 1; } new bounty[MAX_PLAYERS]; bounty[giveplayerid]+=moneys; GivePlayerMoney(playerid, 0-moneys); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); // format(string, sizeof(string), "You have put a $%d bounty on the head of %s (id: %d).", moneys, giveplayer,giveplayerid); // SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "%s has had a $%d bounty put on his head from %s (total: $%d).", giveplayer, moneys, sendername, bounty[giveplayerid]); SendClientMessageToAll(COLOR_RED, string); format(string, sizeof(string), "You have had a $%d bounty put on you from %s (id: %d).", moneys, sendername, playerid); SendClientMessage(giveplayerid, COLOR_RED, string); return 1; } if(strcmp(cmd,"/clear",true)==0 || strcmp(cmd, "/noanim", true)==0) { ClearAnimations(playerid); } if(strcmp(cmd,"/wank",true)==0 || strcmp(cmd, "/wanking", true)==0) { ApplyAnimation(playerid,"PAULNMAC","wank_out",4.1,1,0,0,0,-1); } if(strcmp(cmd,"/handsup",true)==0 || strcmp(cmd, "/surrender", true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); } if(strcmp(cmd,"/cellphone1",true)==0 || strcmp(cmd, "/cellout", true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE); } if(strcmp(cmd,"/cellphone2",true)==0 || strcmp(cmd, "/cellin", true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE); } if(strcmp(cmd,"/drunk",true)==0 || strcmp(cmd, "/high", true)==0) { ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0); } if(strcmp(cmd,"/bmb",true)==0 || strcmp(cmd, "/bombing", true)==0) { ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/getarrested",true)==0 || strcmp(cmd, "/arrested", true)==0) { ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); } if(strcmp(cmd,"/laugh",true)==0) { ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/lookout",true)==0) { ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/rob",true)==0 || strcmp(cmd,"/robman",true)==0) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/crossarms",true)==0) { ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); } if(strcmp(cmd,"/lay",true)==0) { ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/cover",true)==0) { ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/vomit",true)==0) { ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/eat",true)==0) { ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/wave",true)==0) { ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/slapass",true)==0) { ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/deal",true)==0) { ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); } if(strcmp(cmd,"/#####",true)==0) { ApplyAnimation(playerid, "#####", "crckdeth2", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/smoke",true)==0) { ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/sit",true)==0) { ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); } if(strcmp(cmd,"/chat",true)==0 || strcmp(cmd,"/talk",true)==0) { ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); } if(strcmp(cmd,"/fu",true)==0 || strcmp(cmd,"/fuckyou",true)==0) { ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0); } if(strcmp(cmd,"/judo",true)==0 || strcmp(cmd,"/taichi",true)==0) { ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0); } if(strcmp(cmd,"/gangsta",true)==0) { ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1); } if(strcmp(cmd,"/gwave",true)==0) { ApplyAnimation(playerid,"GHANDS", "gsign2LH",4.0,1,1,1,1,1); } if(strcmp(cmd,"/hdance1",true)==0) { ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1); } if(strcmp(cmd,"/hdance2",true)==0) { ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1); } if(strcmp(cmd,"/box",true)==0 || strcmp(cmd,"/boxing",true)==0) { ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox",4.0,1,1,1,1,1); } if(strcmp(cmd,"/scream",true)==0 || strcmp(cmd,"/mad",true)==0) { ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 ); } if(strcmp(cmd,"/bed",true)==0 || strcmp(cmd,"/inbed",true)==0) { ApplyAnimation(playerid,"INT_HOUSE","BED_Loop_R",4.0,1,0,0,0,0); } if(strcmp(cmd,"/dance1",true)==0 || strcmp(cmd,"/dance2",true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); } if(strcmp(cmd,"/dance2",true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2); } if(strcmp(cmd,"/strip",true)==0 || strcmp(cmd,"/striptease",true)==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4); } if (strcmp(cmd, "/report") == 0) { if (strlen(cmdtext) > 8) { GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "Report from %s(%d): %s", playername, playerid, cmdtext[8]); SendMessageToAdmins(string); format(string, sizeof(string), "Report sent to currently online admins."); SendMessage(playerid, string); } else { format(string, sizeof(string), "Usage: /report <text to send>"); SendMessage(playerid, string); } return 1; } if(strcmp(cmd, "/carcolor", true) == 0) { new color1, color2; new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "Type /carcolor for car color change!"); color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "Type /carcolor for car color change!"); color2 = strval(tmp); ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2); return 1; } if(strcmp(cmdtext, "/aod", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Mai intai trebuie sa fi logat!"); return 1; } if(PlayerInfo[playerid][pAdmin] > 0) { if(AdminDuty[playerid] == 0) { AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 99999); SetPlayerHealth(playerid, 99999); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Administratorul {33CCFF}%s{FF9700} este acum la servici. Foloseste {FF002F}/report {FF9700}daca ai o problema!",sendername); SendClientMessageToAll(COLOR_Duduianu,string); if(PlayerInfo[playerid][pAdmin] >= 5) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } return 1; } else if(AdminDuty[playerid] == 1) { AdminDuty[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Administratorul {33CCFF}%s{FF9700} nu mai este la servici.",sendername); SendClientMessageToAll(COLOR_WHITE,string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You're not the admin !"); return 1; #endif //=====================================// #include <a_samp> //=====================================// #define DIALOG_RADIO 2012 //=====================================// new string[256], pName[MAX_PLAYER_NAME]; public OnFilterScriptInit() { print("\n--------------------------------------"); print("DuReX's Radio Filterscript v1.0 loaded!"); print("--------------------------------------\n"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_RADIO) { if(response) { switch(listitem) { case 0: return cmd_radiowish(playerid); case 1:return cmd_radiohit(playerid); case 2: return cmd_contactfm(playerid); case 3: return cmd_romanianhiphop(playerid); case 4: return cmd_romanianmanele(playerid); case 5: return cmd_romanianpopular(playerid); case 6: return cmd_profm(playerid); case 7: return cmd_gmusic(playerid); case 8: return cmd_radiotube(playerid); case 9: return cmd_radiomafia(playerid); case 10: return cmd_greudedifuzat(playerid); case 11: return cmd_stopradio(playerid); } } return 1; } return 0; } CMD:radio(playerid, params[]) { new sradio[1900]; strcat(sradio, "{FFFFFF}RadioWISH {FF0000}\t\t\t /radiowish\n", 1900 ); strcat(sradio, "{FFFFFF}Radio HiT FM {FF0000}\t\t\t /radiohit\n", 1900 ); strcat(sradio, "{FFFFFF}Contact FM {FF0000}\t\t\t /contactfm\n", 1900 ); strcat(sradio, "{FFFFFF}Radio Romanian Hip-Hop {FF0000}\t /romanianhiphop\n", 1900 ); strcat(sradio, "{FFFFFF}Radio Romanian Manele {FF0000}\t /romanianmanele\n", 1900 ); strcat(sradio, "{FFFFFF}Radio Romanian Popular {FF0000}\t /romanianpopular\n", 1900 ); strcat(sradio, "{FFFFFF}Pro FM {FF0000}\t\t\t\t /profm\n", 1900 ); strcat(sradio, "{FFFFFF}Radio GMusic Rock {FF0000}\t\t /gmusic\n", 1900 ); strcat(sradio, "{FFFFFF}radio-tube.pl Dubstep {FF0000}\t\t /radiotube\n", 1900 ); strcat(sradio, "{FFFFFF}Radio Mafia {FF0000}\t\t\t /radiomafia\n", 1900 ); strcat(sradio, "{FFFFFF}Radio Greu de Difuzat {FF0000}\t\t /greudedifuzat\n", 1900 ); strcat(sradio, "{FF0000}Opreste radioul \t\t /stopradio", 1900 ); ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "{FFFFFF}Meniu {FF0000}Radio", sradio, "Selecteaza","Inchide"); return 1; } CMD:radiohit(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio HiT FM (/radiohit)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.radio-hit.ro/asculta.m3u"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio hit~w~...", 1500, 3); return 1; } CMD:radiowish(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}RadioWISH (/radiowish)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.radiowish.ro/live.m3u"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio wish~w~...", 1500, 3); return 1; } CMD:contactfm(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Contact FM (/contactfm)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.contactfm.ro/listen.pls"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~contact fm~w~...", 1500, 3); return 1; } CMD:romanianhiphop(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Hip-Hop (/romanianhiphop)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/hiphop.pls"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian hip-hop~w~...", 1500, 3); return 1; } CMD:romanianpopular(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Popular (/romanianpopular)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/popular.pls"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian popular~w~...", 1500, 3); return 1; } CMD:romanianmanele(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Manele (/romanianmanele)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/manele.pls"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian manele~w~...", 1500, 3); return 1; } CMD:profm(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Pro FM (/profm)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~pro fm~w~...", 1500, 3); return 1; } CMD:gmusic(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio GMusic Rock (/gmusic)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.radiogmusic.com/rock.m3u"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio gmusci rock~w~...", 1500, 3); return 1; } CMD:radiotube(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}radio-tube.pl Dubstep (/radiotube)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://s4.radiohost.pl:8154/listen.pls"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio-tube.pl dubstep~w~...", 1500, 3); return 1; } CMD:radiomafia(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Mafia (/radiomafia)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.radiomafia.ro/listen.m3u"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio mafia~w~...", 1500, 3); return 1; } CMD:greudedifuzat(playerid) { GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Greu de Difuzat (/greudedifuzat)",pName); SendClientMessageToAll(0xFFFFFFAA,string); PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u"); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio greu de difuzat~w~...", 1500, 3); return 1; } CMD:stopradio(playerid) { PlayAudioStreamForPlayer(playerid, "Radio oprit."); StopAudioStreamForPlayer(playerid); return 1; } //End of the script. © 2012 [RNG]DuReX.=======================================/ } } return 1; } public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(299, 1449.1776,-2286.9646,13.5469,92.0250,0,0,0,0,0,0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } Link to comment Share on other sites More sharing options...
CrImA Posted August 15, 2016 Share Posted August 15, 2016 Frate nu ma refeream tot gm-ul, doar liniile la care iti da erori.. Link to comment Share on other sites More sharing options...
SLEEDKOV Posted August 16, 2016 Author Share Posted August 16, 2016 Nu le stiu si de asta am postat intreg gamemode-ul, poti sa il termini si sa mi-l dai! Link to comment Share on other sites More sharing options...
Redds Posted August 24, 2016 Share Posted August 24, 2016 Nu le stiu si de asta am postat intreg gamemode-ul, poti sa il termini si sa mi-l dai! Foloseste CTRL+G si cauta numarul linii, de exemplu din "C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : fatal error 107: too many error messages on one line" numarul linii este '57'. La fel si pentru celelalte erori, cauti linia si ii dai copy+paste aici pe forum. Iar pentru: C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(1) : error 010: invalid function or declaration --> functie invalida. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(40) : warning 217: loose indentation --> re-aranjeaza aceasta linie cu TAB. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(50) : error 017: undefined symbol "COLOR_LIGHTRED" --> defineste culoarea "COLOR_LIGHTRED" sus cu #define C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : warning 217: loose indentation --> re-aranjeaza aceasta linie cu TAB. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : error 017: undefined symbol "bonus" --> defineste #define bonus, sus, ca la culoare. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 017: undefined symbol "PlayerInfo" --> Vezi ca s-ar putea ca gamemode-ul sa aiba PInfo sau PlayerVariables, nu este de ajuns doar sa copiezi o comanda in gamemode, trebuie si modificata in functie de gm-ul tau. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : warning 215: expression has no effect --> expresie care nu face nimic, afla de ce. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 001: expected token: ";", but found "]" --> ai uitat o { } pe undeva. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 029: invalid expression, assumed zero --> la fel, expresie care nu face nimic, afla de ce. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : fatal error 107: too many error messages on one line --> prea multe erori pe aceasta linie. Cam atat iti pot spune fara sa vad liniile din gamemode, cand le vei pune da'mi un Quote aici. Link to comment Share on other sites More sharing options...
SLEEDKOV Posted August 29, 2016 Author Share Posted August 29, 2016 Foloseste CTRL+G si cauta numarul linii, de exemplu din "C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : fatal error 107: too many error messages on one line" numarul linii este '57'. La fel si pentru celelalte erori, cauti linia si ii dai copy+paste aici pe forum. Iar pentru: C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(1) : error 010: invalid function or declaration --> functie invalida. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(40) : warning 217: loose indentation --> re-aranjeaza aceasta linie cu TAB. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(50) : error 017: undefined symbol "COLOR_LIGHTRED" --> defineste culoarea "COLOR_LIGHTRED" sus cu #define C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : warning 217: loose indentation --> re-aranjeaza aceasta linie cu TAB. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(56) : error 017: undefined symbol "bonus" --> defineste #define bonus, sus, ca la culoare. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 017: undefined symbol "PlayerInfo" --> Vezi ca s-ar putea ca gamemode-ul sa aiba PInfo sau PlayerVariables, nu este de ajuns doar sa copiezi o comanda in gamemode, trebuie si modificata in functie de gm-ul tau. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : warning 215: expression has no effect --> expresie care nu face nimic, afla de ce. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 001: expected token: ";", but found "]" --> ai uitat o { } pe undeva. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : error 029: invalid expression, assumed zero --> la fel, expresie care nu face nimic, afla de ce. C:\Users\stefan\Desktop\New folder\gamemodes\test.pwn(57) : fatal error 107: too many error messages on one line --> prea multe erori pe aceasta linie. Cam atat iti pot spune fara sa vad liniile din gamemode, cand le vei pune da'mi un Quote aici. Ultimele erori C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(41) : warning 217: loose indentation C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(48) : warning 219: local variable "string" shadows a variable at a preceding level C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(51) : error 029: invalid expression, assumed zero C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(51) : warning 215: expression has no effect C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(51) : error 001: expected token: ";", but found ")" C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(51) : error 029: invalid expression, assumed zero C:\SLEED\GM-uri\New folder\gamemodes\test.pwn(51) : fatal error 107: too many error messages on one line Link to comment Share on other sites More sharing options...
SLEEDKOV Posted September 2, 2016 Author Share Posted September 2, 2016 cnv? Link to comment Share on other sites More sharing options...
EAX.. Posted September 2, 2016 Share Posted September 2, 2016 Cum poti sa-ti faci gm de la 0 daca habar nu ai scripting? :| Link to comment Share on other sites More sharing options...
Coso Posted September 3, 2016 Share Posted September 3, 2016 » @, dacă tot vrei să te apuci de un gamemode, totuşi, nu ai cum să-l faci de la 0 dacă nu ai cunoştinţe scripting, îţi recomand GM-ul Vortex, pornind de la acel GM poţi adăuga / scoate sisteme, comenzi ş.a.m.d. Link to comment Share on other sites More sharing options...
SLEEDKOV Posted September 4, 2016 Author Share Posted September 4, 2016 » @, dacă tot vrei să te apuci de un gamemode, totuşi, nu ai cum să-l faci de la 0 dacă nu ai cunoştinţe scripting, îţi recomand GM-ul Vortex, pornind de la acel GM poţi adăuga / scoate sisteme, comenzi ş.a.m.d. Am cunostinte, cnv sa imi rezolve ultimele erori? Vortex e cu MYSQL? Link to comment Share on other sites More sharing options...
CristinaG Posted September 8, 2016 Share Posted September 8, 2016 Pai daca ai cunostinte,de ce nu le poti rezolva?Ia-ti un gamemode cum au zis si ceilalti Vortex sau Saints si incepe de acolo,daca tu nu ai habar n-ai de scripting,de unde sa stii sa le rezolvi? Link to comment Share on other sites More sharing options...
SLEEDKOV Posted September 11, 2016 Author Share Posted September 11, 2016 Am terminat cu gm-u de la 0, e o problema la .amx, dau edit dupa ce fac poza si o pun Link to comment Share on other sites More sharing options...
Recommended Posts