This file contains 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: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]"); |
This file contains 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(); |
This file contains 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 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 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 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 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 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 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 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; |
OlderNewer