Skip to content

Instantly share code, notes, and snippets.

View dennorske's full-sized avatar
🐶

denNorske dennorske

🐶
View GitHub Profile
CMD:passenger (playerid,params[])
{
new driver;
new string123[165];
new veh = GetPlayerVehicleID(driver);
if (PlayerInfo[playerid][aLevel] < 1)
return SendClientMessage(playerid, RED, "Only Administrators level 1+ can use this command");
if(sscanf(params, "i",driver))
return SendClientMessage(playerid, RED, "Hello Admin! Usage: "corange"/PASSENGER [Playerid]");
public OnGameModeInit()
{
a_AMX();
/* Funktionen */
SetGameModeText("Zombies VS Survivors");
DisableInteriorEnterExits();
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
SetWorldTime(0);
SetWeather(0);
UsePlayerPedAnims();
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"},
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);
@dennorske
dennorske / bla.cs
Created January 22, 2013 17:10
A code snippet
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);
@dennorske
dennorske / blablu.cs
Created January 22, 2013 17:11
A code snippet
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);
@dennorske
dennorske / drug system.cs
Created February 13, 2013 13:29
Drug system
///Drug system by Spunky:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <dini>
@dennorske
dennorske / pawn.cs
Created February 14, 2013 11:00
Drugsystem
///Drug system by Spunky:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <dini>
@dennorske
dennorske / test.cs
Created February 18, 2013 14:06
test
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])
{
@dennorske
dennorske / changename.cs
Created March 2, 2013 13:20
Changename Command for Luxadmin (dcmd)
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;