This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMD:ban(playerid, params[]) | |
| { | |
| new suspect, string[200], reason[200],string1[100],string4[600],year,month,date, hour,minute,second, string5[150];//variables needed for the ban :P | |
| if (AccInfo[playerid][aLevel] < 3) | |
| return SendClientMessage(playerid, grey, " - Only Level 3+ can perform this command - "); | |
| if(sscanf(params, "k<player_name>s[200]", suspect, reason)) | |
| return SendClientMessage(playerid, grey, " - USAGE: "cgrey"/BAN [playerid/name] [reason of ban] - Will ban the selected player from the server"); | |
| AccInfo[suspect][banreason] = reason; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dcmd_changename(playerid,params[]) | |
| { | |
| new file[80]; | |
| new suspectname[MAX_PLAYER_NAME]; | |
| new susfile[80]; | |
| new string[180]; | |
| new string2[180]; | |
| new playernames[MAX_PLAYER_NAME]; | |
| new Index; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMD:gate(playerid, params[]) | |
| { | |
| if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /gate [pass]"); | |
| for(new i = 0; i < sizeof(GateInfo); i++) | |
| { | |
| if(IsPlayerInRangeOfPoint(playerid, 15.0, GateInfo[i][gPosX], GateInfo[i][gPosY], GateInfo[i][gPosZ])) | |
| { | |
| if(strval(params) == GateInfo[i][gPassword]) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///Drug system by Spunky: | |
| #include <a_samp> | |
| #include <sscanf2> | |
| #include <zcmd> | |
| #include <dini> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///Drug system by Spunky: | |
| #include <a_samp> | |
| #include <sscanf2> | |
| #include <zcmd> | |
| #include <dini> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public OnPlayerCommandText(playerid, cmdtext[]) | |
| { | |
| if (strcmp("/repair", cmdtext, true, 10) == 0) | |
| { | |
| if(denyrepair) | |
| return SendClientMessage(playerid, -1, "You are not allowed to do this command again so fast!"); | |
| if(!IsPlayerInAnyVehicle(playerid)) | |
| return SendClientMessage(playerid, 0xFF0000FF, "You are not in a vehicle!"); // Let the player know he's not inside a vehicle and let the server know that this was a valid command | |
| // Fully repair the vehicle (damage value and bodywork) | |
| SetTimerEx("Repair_CMD", 15000, false, "i", playerid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public OnPlayerCommandText(playerid, cmdtext[]) | |
| { | |
| if (strcmp("/repair", cmdtext, true, 10) == 0) | |
| { | |
| if(denyrepair) | |
| return SendClientMessage(playerid, -1, "You are not allowed to do this command again so fast!"); | |
| if(!IsPlayerInAnyVehicle(playerid)) | |
| return SendClientMessage(playerid, 0xFF0000FF, "You are not in a vehicle!"); // Let the player know he's not inside a vehicle and let the server know that this was a valid command | |
| // Fully repair the vehicle (damage value and bodywork) | |
| SetTimerEx("Repair_CMD", 15000, false, "i", playerid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public OnPlayerCommandText(playerid, cmdtext[]) | |
| { | |
| if (strcmp("/repair", cmdtext, true, 10) == 0) | |
| { | |
| if(denyrepair) | |
| return SendClientMessage(playerid, -1, "You are not allowed to do this command again so fast!"); | |
| if(!IsPlayerInAnyVehicle(playerid)) | |
| return SendClientMessage(playerid, 0xFF0000FF, "You are not in a vehicle!"); // Let the player know he's not inside a vehicle and let the server know that this was a valid command | |
| // Fully repair the vehicle (damage value and bodywork) | |
| SetTimerEx("Repair_CMD", 15000, false, "i", playerid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Text:dText5; | |
| new textstring[90]; | |
| //Credits to Jarnu... I didnt do this in 10 mins xD | |
| new VehicleNames[212][] = { | |
| {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"}, | |
| {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"}, | |
| {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"}, | |
| {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"}, | |
| {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public OnGameModeInit() | |
| { | |
| a_AMX(); | |
| /* Funktionen */ | |
| SetGameModeText("Zombies VS Survivors"); | |
| DisableInteriorEnterExits(); | |
| ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL); | |
| SetWorldTime(0); | |
| SetWeather(0); | |
| UsePlayerPedAnims(); |