PHP код:
//Fixed By Mounty Non togliere crediti//
#include <a_samp>
#include <dudb>
#include <a_players>
#include <dini>
#pragma tabsize 0
// Colori
#define COLOR_ROSSO 0xAA3333AA
#define COLOR_GRIGIO 0xAFAFAFAA
#define COLOR_VERDE 0x33AA33AA
#define COLOR_GIALLO 0xFFFF00AA
#define COLOR_BLU 0x1111AAFF
#define COLOR_ROSA 0xFF66FFAA
#define COLOR_BLUCHIARO 0x33CCFFAA
#define COLOR_ROSSOSCURO 0x660000AA
#define COLOR_ARANCIONE 0xFF9900AA
#define COLOR_BIANCO 0xFFFFFFAA
#define ADMINFS_MESSAGE_COLOR 0xFF444499
#define PM_INCOMING_COLOR 0xFFFF22AA
#define PM_OUTGOING_COLOR 0xFFCC2299
#define COLOR_VERDECHIARO 0x18FE12FF
new vehName[][] =
{
"Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster",
"Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
"Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer",
"Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach",
"Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow",
"Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
"Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic",
"Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton",
"Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher",
"FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick",
"Boxvillde", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher",
"Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain",
"Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck",
"Fortune", "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan",
"Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder",
"Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster",
"Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
"Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30",
"Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
"Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car",
"Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs",
"Boxville", "Tiller", "Utility Trailer"
};
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("°°[IkS]Maps~Assassin~Dm°°");
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)
{
SendClientMessage(playerid, COLOR_VERDE, "Benvenuto nel server [IkS]!");
SendClientMessage(playerid, COLOR_ROSSO, "Questo и il clan [IkS]!");
SendClientMessage(playerid, COLOR_GIALLO, "Visitate il nostro forum ");
SendClientMessage(playerid, COLOR_BLU, "http://iks-sampclan.forumfree.it/");
SendClientMessage(playerid, COLOR_BLUCHIARO, "venite in tanti !!");
SendClientMessage(playerid, COLOR_ARANCIONE, "digita /comandi per sapere tutti i comandi utilizabili");
SendClientMessage(playerid, COLOR_VERDECHIARO, "digita /cheter per segnalare un player");
SendClientMessage(playerid, COLOR_ROSSOSCURO, "Buona permanenza");
GameTextForPlayer(playerid, "~r~Benvenuto ~w~nel ~g~Server",3000,5);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid,1184,0.0,0.0,0.0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(playerid,"~v~LoL ~w~sEI ~r~MortO!", 2000, 2);
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("/ammunation", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2155.9624, 943.3397, 10.8203);
ResetPlayerWeapons(playerid);
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al ammunation per rifornirsi(/ammunation).", name);
SendClientMessageToAll(COLOR_VERDE, string);
SendClientMessage(playerid, COLOR_VERDE, "Qui ti potrai rifornire comprando armi");
if (strcmp("/dm1", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2315.573,1542.463, 18.77344);
ResetPlayerWeapons(playerid);
new pern[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al dm2 (/dm2).", name);
SendClientMessageToAll(COLOR_GIALLO, string);
if (strcmp("/dm2", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2159 , 949 , -391 , 35 , 33594);
ResetPlayerWeapons(playerid);
new nam[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al dm3 (/dm3).", name);
SendClientMessageToAll(COLOR_GIALLO, string);
if (strcmp("/dm3", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2689.984 , -1694.918 , 9.959698);
ResetPlayerWeapons(playerid);
new nae[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al dm4 (/dm4).", name);
SendClientMessageToAll(COLOR_GIALLO, string);
if (strcmp("/chiliad", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2320 , 379 , -1663 , 738 , 483 , 2888);
ResetPlayerWeapons(playerid);
new nme[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al monte chiliad (/chiliad).", name);
SendClientMessageToAll(COLOR_VERDE, string);
SendClientMessage(playerid, COLOR_VERDE, " sei in alto !! , meglio che ti prendi un paracadute (/paracadute)");
if (strcmp("/lb", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -764.32 , 464.1 , 1366.827 );
ResetPlayerWeapons(playerid);
new nage[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato a liberty city (/lb).", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/shamal", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1 , 7 , 32 , 4 , 1199 , 602 );
ResetPlayerWeapons(playerid);
new beh[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato all'interno dello shamal (/shamal).", name);
SendClientMessageToAll(COLOR_VERDE, string);
SendClientMessage(playerid, COLOR_VERDE, "meglio che ti prendi un paracadute (/paracadute)");
if (strcmp("/ganton", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2493 , 159 , -1687 , 13 , 51347 );
ResetPlayerWeapons(playerid);
new bello[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al ganton , in casa Jhon (/ganton).", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/bridge", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2684 , 893 , 1242 , 324 , 55 , 42969 );
ResetPlayerWeapons(playerid);
new setme[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al gante bridge (/bridge).", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/ferrisweel", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 368 , 3753 , -2029 , 625 , 7 , 671875 );
ResetPlayerWeapons(playerid);
new buhg[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s и andato al ferrisweel (/ferrisweel).", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/lv", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2027.0825, 1008.3011, 10.8203);
ResetPlayerWeapons(playerid);
new ghj[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s и andato a lv /lv.", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/ls", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2495.1101 ,-1687.5262, 13.5151);
ResetPlayerWeapons(playerid);
new perno[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s и andato a ls /ls.", name);
SendClientMessageToAll(COLOR_VERDE, string);
if (strcmp("/villa", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2661 , 1413 , 97 , 922 , 1953);
ResetPlayerWeapons(playerid);
new gghh[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s и andato alla villa admin !.", name);
SendClientMessageToAll(COLOR_ARANCIONE, string);
if (strcmp("/iks_|", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 223.431976 , 1872.400268 , 13.734375);
ResetPlayerWeapons(playerid);
new namertfh[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s и andato alla base [IkS] .", name);
SendClientMessageToAll(COLOR_ROSSO, string);
SendClientMessage(playerid, COLOR_ROSSO, "Sei nella base militare [IkS]!!");
GivePlayerWeapon(playerid, 17,40);
SendClientMessage(playerid, COLOR_GIALLO, "Hai ricevuto un tear gas , per difenderla !!");
if(strcmp(cmdtext, "/tele", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|__________________ Tele (/tele) _________________|");
SendClientMessage(playerid, COLOR_GIALLO, "/dm [1-4]");
SendClientMessage(playerid, COLOR_GIALLO, "/dmspecial");
SendClientMessage(playerid, COLOR_GIALLO, "/chiliad");
SendClientMessage(playerid, COLOR_GIALLO, "/lb");
SendClientMessage(playerid, COLOR_GIALLO, "/lv");
SendClientMessage(playerid, COLOR_GIALLO, "/shamal");
SendClientMessage(playerid, COLOR_GIALLO, "/ganton");
SendClientMessage(playerid, COLOR_GIALLO, "/bridge");
SendClientMessage(playerid, COLOR_GIALLO, "/ferrisweel");
SendClientMessage(playerid, COLOR_GIALLO, "/ls");
SendClientMessage(playerid, COLOR_VERDE, "|__________________________________________________|");
if(strcmp(cmdtext, "/comandi", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|__________________ Comandi (/comandi) ______________|");
SendClientMessage(playerid, COLOR_GIALLO, "digita /tele per vedere tutti i teletrasporti");
SendClientMessage(playerid, COLOR_GIALLO, "digita /armi per vedere tutti le armi spawnabili");
SendClientMessage(playerid, COLOR_GIALLO, "digita /regolamento per vedere le regole del server");
SendClientMessage(playerid, COLOR_GIALLO, "digita /info-ikk per conoscere informazioni sui ikk");
SendClientMessage(playerid, COLOR_GIALLO, "digitare /arruolamenti per arruolarti");
SendClientMessage(playerid, COLOR_GIALLO, "digita /pm per madare un messaggio privato");
SendClientMessage(playerid, COLOR_GIALLO, "digita /kill per suicidarti");
SendClientMessage(playerid, COLOR_GIALLO, "digita /disarm per autodisarmarti");
SendClientMessage(playerid, COLOR_GIALLO, "digita /infospawn per sapere come spawnare veicoli");
SendClientMessage(playerid, COLOR_GIALLO, "digita /cheter per segnalare un player");
SendClientMessage(playerid, COLOR_GIALLO, "|__________________________________________________|");
if(strcmp(cmdtext, "/regolamento", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|__________________ Regolamento (/regolamento) ___________|");
SendClientMessage(playerid, COLOR_GIALLO, "1)Non usare cheats");
SendClientMessage(playerid, COLOR_GIALLO, "2)Non flodd/spam");
SendClientMessage(playerid, COLOR_GIALLO, "3)Non insultare player , membri del clan o admin");
SendClientMessage(playerid, COLOR_GIALLO, "4)Non usare armi nelle zone drift");
SendClientMessage(playerid, COLOR_VERDE, "|_____________________________________________________|");
if(strcmp(cmdtext, "/regolamento", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|__________________ Armi (/armi) _________________________|");
SendClientMessage(playerid, COLOR_GIALLO, "/sawn , /mp5 , /knife , /grenade , /desert , /tec9");
SendClientMessage(playerid, COLOR_GIALLO, "/silenced , /m4 , /satchel , /micro , /chainsaw");
SendClientMessage(playerid, COLOR_VERDE, "|_____________________________________________________|");
if(strcmp(cmdtext, "/info-iks", true) == 0)
SendClientMessage(playerid, COLOR_ARANCIONE, "Il server и nuovo !!");
SendClientMessage(playerid, COLOR_ROSSO, "Il founder и [IkS]Ter[mi]n4tor [lv5]");
SendClientMessage(playerid, COLOR_VERDE, "__________________________________");
SendClientMessage(playerid, COLOR_GIALLO, "gli admin sono [IkS]Ip[er]space [lv3]");
SendClientMessage(playerid, COLOR_VERDE, "___________________________________");
SendClientMessage(playerid, COLOR_BLU, "per arruolarsi digitare /arruolamenti");
SendClientMessage(playerid, COLOR_BLUCHIARO, "questo и tutto sugli [IkS]");
if(strcmp(cmdtext, "/arruolamenti", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|______________ Arruolamenti (/arruolamenti) ______________|");
SendClientMessage(playerid, COLOR_GIALLO, "Condizioni per arruolarsi :");
SendClientMessage(playerid, COLOR_BLU, "Avere conoscenze sul dm");
SendClientMessage(playerid, COLOR_BLU, "Fare amicizia con i membri del clan");
SendClientMessage(playerid, COLOR_BLU, "Non insultare");
SendClientMessage(playerid, COLOR_BLU, "Essere registarto sul forum");
SendClientMessage(playerid, COLOR_GIALLO, "_-_-_-_-_°[Spiegazione]°-_-_-_-_-_-_");
SendClientMessage(playerid, COLOR_BLU, "L'arruolamento consiste in un test suddiviso in due prove:");
SendClientMessage(playerid, COLOR_BLU, "DM : dovrai affrontare il founder , con armi cw e armi normali");
SendClientMessage(playerid, COLOR_BLU, "TEST TEORICO : dovrai rispondere a 5 domande su samp nel forum");
SendClientMessage(playerid, COLOR_VERDE, "|__________________________________________________________|");
if(strcmp(cmdtext, "/infospawn", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "|___________________ Spawn (/infospawn) ________________|");
SendClientMessage(playerid, COLOR_GIALLO, "Per spawnare un veicolo digita :");
SendClientMessage(playerid, COLOR_GIALLO, "/car [nome veicolo]");
SendClientMessage(playerid, COLOR_VERDE, "________________________________________________________|");
if(strcmp(cmdtext, "/login samp4ever24", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "You are logged in as Admin ! (lv1)");
if(strcmp(cmdtext, "/login samp4ever97", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "You are logged in as Admin ! (lv2)");
if(strcmp(cmdtext, "/login samp4ever_95", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "You are logged in as Admin ! (lv3)");
if(strcmp(cmdtext, "/login samp4ever_97", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "You are logged in as Admin ! (lv4)");
if(strcmp(cmdtext, "/login samp4ever_|_|", true) == 0)
SendClientMessage(playerid, COLOR_VERDE, "You are logged in as Admin ! (lv5)");
if(strcmp(cmdtext, "/cheter", true) ==0)
SendClientMessage(playerid, COLOR_ROSSO, "Segnala il nome del cheter , esso verrа riferito al founder");
SendClientMessage(playerid, COLOR_ROSSO, "Scrivi il nome del cheter");
SendClientMessageToAll(COLOR_GIALLO, "**Warning** °°Cheter segnalato in game°°");
SendClientMessageToAll(COLOR_GIALLO, "Il cheter segnlato tolga immediatamento i cheats");
SendClientMessageToAll(COLOR_GIALLO, "pena : KIK|BAN");
if(strcmp(cmdtext, "/sawn", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ricevuto un sawn");
GivePlayerWeapon(playerid, 26,550);
if(strcmp(cmdtext, "/mp5", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un mp5");
GivePlayerWeapon(playerid, 29,5000);
if(strcmp(cmdtext, "/knife", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un coltello");
GivePlayerWeapon(playerid, 4,1000);
if(strcmp(cmdtext, "/grenade", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto delle granate");
GivePlayerWeapon(playerid, 16,50);
if(strcmp(cmdtext, "/desert", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, " Hai ottenuto una desert");
GivePlayerWeapon(playerid, 24,5000);
if(strcmp(cmdtext, "/silenced", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto una 9mm silenziata");
GivePlayerWeapon(playerid, 23,5000);
if(strcmp(cmdtext, "/combat", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un combat ");
GivePlayerWeapon(playerid, 27,700);
if(strcmp(cmdtext, "/gas_|", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un Tear Gas (*arma del clan*)");
GivePlayerWeapon(playerid, 17,55);
if(strcmp(cmdtext, "/m4", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un m4");
GivePlayerWeapon(playerid, 31,9000);
if(strcmp(cmdtext, "/minigun_|1", true) == 0)
{
SendClientMessage(playerid, COLOR_ROSSO, "Hai ottenuto un minigun (*arma admin*)");
GivePlayerWeapon(playerid, 38,9999);
if(strcmp(cmdtext, "/satchel", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un satchel");
GivePlayerWeapon(playerid, 39,3000);
if(strcmp(cmdtext, "/lanciamissili_|", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un lanciamissili (*arma del clan*)");
GivePlayerWeapon(playerid, 35,200);
if(strcmp(cmdtext, "/lanciamissilihs_|1", true) == 0)
{
SendClientMessage(playerid, COLOR_ROSSO, "Hai ottenuto un lanciamissili HS (*arma admin*)");
GivePlayerWeapon(playerid, 23,5000);
if(strcmp(cmdtext, "/paracadute", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un paracadute");
GivePlayerWeapon(playerid, 46,2);
if(strcmp(cmdtext, "/tec9", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un tec9");
GivePlayerWeapon(playerid, 32,8000);
if(strcmp(cmdtext, "/sniper_|1", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un fucile a precisione (*arma admin*)");
GivePlayerWeapon(playerid, 34,60);
if(strcmp(cmdtext, "/micro", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto un micro SMG");
GivePlayerWeapon(playerid, 28,8000);
if(strcmp(cmdtext, "/chainsaw", true) == 0)
{
SendClientMessage(playerid, COLOR_GIALLO, "Hai ottenuto una motosega");
GivePlayerWeapon(playerid, 9,2);
if(strcmp(cmdtext, "/vita", true) == 0)
{
SetPlayerHealth(playerid,1000);
SendClientMessage(playerid, COLOR_ARANCIONE, "ti sei ricaricato la vita");
if(strcmp(cmdtext, "armatura_|", true) ==0)
{
SetPlayerArmour(playerid,1000);
SendClientMessage(playerid, COLOR_ARANCIONE, "hai indossato un armatura");
if(strcmp(cmdtext, "score_1", true) ==0)
{
SetPlayerScore(playerid, 1000000);
SendClientMessage(playerid, COLOR_ARANCIONE, "hai ricevuto delle score");
if (strcmp("/dmspecial", cmdtext, true, 10) == 0)
SetPlayerPos(playerid, -768.7932,1557.3037,27.1172);
SetPlayerFacingAngle(playerid, 269.4232);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 29, 9999);
new stringa[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "^^^ %s и andato al DM Special (/dmspecial)", name);
SendClientMessageToAll(COLOR_GIALLO, string);
SendClientMessage(playerid,COLOR_VERDE, "Hai ricevuto una desert e mp5 , area allenamento armi cw !!");
SendClientMessage(playerid,COLOR_VERDE, "Tutte le altre armi , qui , sono vietate !!");
if (strcmp("/disarm", cmdtext, true, 10) == 0)
ResetPlayerWeapons(playerid);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "^^^ %s si и autodisarmato (/disarm)", name);
SendClientMessageToAll(COLOR_ARANCIONE, string);
if (strcmp("/kill" , cmdtext, true)==0)
SetPlayerHealth(playerid, 0);
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/noarmatura_|", true) == 0)
{
SetPlayerArmour(playerid,0);
SendClientMessage(playerid, COLOR_VERDE, "Hai tolto l'armatura");
}
strtok(const string[], &index)
{
new length = strlen(string);
while((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
if(strcmp(cmdtext, "/car", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ROSSO, "USAGE: /car [id/nome] [colore1] [colore2]");
return 1;
}
new car;
car = strvalEx(tmp);
if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp);
if(car < 400 || car > 611)
{
SendClientMessage(playerid, COLOR_GREY, "ID/Nome non valido!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
tmp = random(128);
new color1;
color1 = strvalEx(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
tmp=random(128);
new color2;
color2 = strvalEx(tmp);
new Float:X,Float:Y,Float:Z,Float:D;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, D);
new v = CreateVehicle(car, X,Y,Z, D, color1, color2, 60000);
SetTimerEx("Respawn", 10000, 0, "ii", v, playerid);
PutPlayerInVehicle(playerid, v, 0);
SetPlayerInterior(playerid, 0);
dmspawn[playerid] = 0;
SendClientMessage(playerid, COLOR_VERDE, "Veicolo spawnato!");
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/kick_|", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /kick [playerid]");
Kick(strval(tmp));
}
return 1;
}
return 0;