23.05.2012, 07:45
I'm new at scripting but i done a good job i'll show you my frist script and i'm need a pro scripter to help at the script thing.
{
[/pwan]
i know i need lot of help here.
Код HTML:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT #include <Zadmin4.0> public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" .::::::Drift mode::::::..............................>>>>>>>>>>>>>>>>O>OO>"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Fuck yeah"); AddPlayerClass(226,2028.7170,1007.9003,10.8203,270.0,500,0,0,0,0); //Normal Ped1 AddPlayerClass(28,2028.7170,1007.9003,10.8203,270.0,500,0,0,0,0); //Normal Ped2 AddPlayerClass(7,2028.7170,1007.9003,10.8203,270.0,500,0,0,0,0); //Normal Ped3 AddPlayerClass(69,2028.7170,1007.9003,10.8203,270.0,500,0,0,0,0); //Normal Ped4 AddPlayerClass(165,2287.0510,2428.3872,10.8203,180.0,500,0,0,0,0); //FBI AddPlayerClass(166,1551.7374,-1675.5732,15.9814,90.0,500,0,0,0,0); //Police AddPlayerClass(283,1551.7374,-1675.5732,15.9814,90.0,500,0,0,0,0); //Police AddPlayerClass(285,1551.7374,-1675.5732,15.9814,90.0,500,0,0,0,0); //Police AddPlayerClass(265,1551.7374,-1675.5732,15.9814,90.0,500,0,0,0,0); //Tepenny AddPlayerClass(0,2495.0396,-1681.5645,13.3388,2.9431,500,0,0,0,0); //CJ AddPlayerClass(105,2495.0396,-1681.5645,13.3388,2.9431,500,0,0,0,0); //grove1 AddPlayerClass(106,2495.0396,-1681.5645,13.3388,2.9431,500,0,0,0,0); //grove2 AddPlayerClass(107,2495.0396,-1681.5645,13.3388,2.9431,500,0,0,0,0); //grove1 AddPlayerClass(272,1124.0625,-2029.8197,74.4297,270.0,500,0,0,0,0); //Mafiaboss AddPlayerClass(238,2304.5032,-1649.9893,14.5516,177.6974,500,0,0,0,0); //Bitch1 AddPlayerClass(245,2304.5032,-1649.9893,14.5516,177.6974,500,0,0,0,0); //Bitch2 AddStaticVehicle(560,2510.8875,-1666.0471,13.2767,181.3861,33,0); // AddStaticVehicle(560,2496.6616,-1656.1902,13.0822,346.5030,33,0); // AddStaticVehicle(555,2495.5166,-1685.3439,13.1496,274.1539,68,1); // AddStaticVehicle(560,2028.1849,-1406.1869,16.9148,270.3390,33,0); // AddStaticVehicle(560,2036.7841,-1431.7781,16.7518,178.5606,33,0); // AddStaticVehicle(560,2025.2329,-1444.6576,16.3282,97.4556,33,0); // AddStaticVehicle(560,2000.8191,-1431.8801,14.6709,357.5909,33,0); // AddStaticVehicle(560,2001.0018,-1407.9653,16.8070,1.6111,33,0); // CreateObject(2990,2483.01660156,-1687.36755371,16.42179298,0.00000000,0.00000000,0.00000000); //object(wongs_gate) (1 return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,20.0442,-1678.8009,14.9230,270.4193); SetPlayerCameraPos(playerid, 2033.0314,-1427.3358,16.9922,8.9460); SetPlayerCameraLookAt(playerid, 1998.4419,-1448.7360,13.5606,305.3622); 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("/ak47", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 30,1000); // player have ak47 return 1; } if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); // player dead return 1; } if (strcmp("/sniper", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 34,10); // player dead return 1; } if (strcmp("/c4", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 39,10); // player dead return 1; } if (strcmp("/Cashforweapons", cmdtext, true, 10) == 0) { GivePlayerMoney(playerid,9999999); // player dead return 1; } if (strcmp("/mfas", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 38,10000); // player dead return 1; } if (strcmp("/armourforme", cmdtext, true, 10) == 0) { SetPlayerArmour(playerid,100); // player dead return 1; } if (strcmp("/healme", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,250); // player dead return 1; } if (strcmp("/open", cmdtext, true, 10) == 0) { MoveObject(2990,2483.01660156,-1687.36755371,16.42179298,1); SetTimer("close", 10000, 0);//the gate will close after 10 seconds 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;
[/pwan]
i know i need lot of help here.