if(strcmp(cmd, \"/addnitro\", true) == 0) { new vid = GetPlayerVehicleID(playerid); AddVehicleComponent(vid, 1010); return 1;}if(strcmp(cmd, \"/remnitro\", true) == 0) { new vid = GetPlayerVehicleID(playerid); RemoveVehicleComponent(vid, 1010); return 1;}
[code ][/code ]
if(!strcmp(cmdtext, \"/javit\", true)) { if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, 0xFFFFFFFF, \"Nemvagy Kocsiban!\"); } RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, \"Megjavítva!\"); return 1; }
if(!strcmp(cmdtext, \"/borit\", true)) { new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0; if(IsPlayerInAnyVehicle(playerid)) { SetCameraBehindPlayer(playerid); } GetPlayerPos(playerid, var0, var1, var2); SetVehiclePos(GetPlayerVehicleID(playerid), var0, var1, var2); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); return 1; }
Kenguru\" post=\"106107\" timestamp=\"1295078143\"] new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0; [/quote]Há\' ezmiez new Float:var[3];
new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;
new Float:var[3];
Kenguru\" post=\"106107\" timestamp=\"1295078143\"] if(!strcmp(cmdtext, \"/borit\", true)) { new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0; if(IsPlayerInAnyVehicle(playerid)) { SetCameraBehindPlayer(playerid); } GetPlayerPos(playerid, var0, var1, var2); SetVehiclePos(GetPlayerVehicleID(playerid), var0, var1, var2); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); return 1; } [/quote]a var0 = 0.0 sorból látszik, hogy másolta, valami DeAMX-elt sz4r scriptbõl.
Vlecska lekapcsolás if (strcmp(\"/detach\", cmdtext, true) == 0){if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ new vehicleid = GetPlayerVehicleID(playerid); if (IsTrailerAttachedToVehicle(vehicleid)) { AttachTrailerToVehicle(GetVehicleTrailer(vehicleid), vehicleid); DetachTrailerFromVehicle(vehicleid); SendClientMessage(playerid, COLOR_BASIC, \"Vlecska lekapcsolva.\"); PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); return 1; } SendClientMessage(playerid, COLOR_RED, \"Nincs vlecska a jármûveden.\"); return 1;}SendClientMessage(playerid, COLOR_RED, \"Jármûben kell lennen hogy lecsatolhazsd a vlecskát.\");return 1;}
if (strcmp(\"/detach\", cmdtext, true) == 0){if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ new vehicleid = GetPlayerVehicleID(playerid); if (IsTrailerAttachedToVehicle(vehicleid)) { AttachTrailerToVehicle(GetVehicleTrailer(vehicleid), vehicleid); DetachTrailerFromVehicle(vehicleid); SendClientMessage(playerid, COLOR_BASIC, \"Vlecska lekapcsolva.\"); PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); return 1; } SendClientMessage(playerid, COLOR_RED, \"Nincs vlecska a jármûveden.\"); return 1;}SendClientMessage(playerid, COLOR_RED, \"Jármûben kell lennen hogy lecsatolhazsd a vlecskát.\");return 1;}
CMD:rpajzshaton(playerid, params[]){RemovePlayerAttachedObject(playerid,1);SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);SendClientMessage(playerid,0x00ffffAA,\"Rohampajzs sikeresen a hátadra rakva!\");return 1;}CMD:sokkolo(playerid, params[]){RemovePlayerAttachedObject(playerid,2);SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);SendClientMessage(playerid,0xb5b5b5AA,\"Sokkoló sikeresen elõvéve!\");return 1;}CMD:rpajzskezen(playerid, params[]){RemovePlayerAttachedObject(playerid,1);SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);SendClientMessage(playerid,0x00ffffAA,\"Rohampajzs sikeresen a kezedre rakva!\");return 1;}CMD:zslampa(playerid, params[]){RemovePlayerAttachedObject(playerid,2);SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);SendClientMessage(playerid,0xffffffAA,\"Zseblámpa sikeresen elõvéve!\");return 1;}CMD:lzsel(playerid,params[]){RemovePlayerAttachedObject(playerid,2);SendClientMessage(playerid,0x1e8000AA,\"Sokkoló/Zseblámpa sikeresen elrakva!\");return 1;}CMD:rpajzsell(playerid,params[]){RemovePlayerAttachedObject(playerid,1);SendClientMessage(playerid,0x1e8000AA,\"Rohampajzs sikeresen elrakva!\");return 1;}
if (strcmp(cmd, \"/fly\", true) == 0){ if(IsPlayerConnected(playerid)) { new Float:px, Float:py, Float:pz, Float:pa; GetPlayerFacingAngle(playerid,pa); if(pa >= 0.0 && pa <= 22.5) //n1 { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px, py+30, pz+5); } if(pa >= 332.5 && pa < 0.0) //n2 { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px, py+30, pz+5); } if(pa >= 22.5 && pa <= 67.5) //nw { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px-15, py+15, pz+5); } if(pa >= 67.5 && pa <= 112.5) //w { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px-30, py, pz+5); } if(pa >= 112.5 && pa <= 157.5) //sw { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px-15, py-15, pz+5); } if(pa >= 157.5 && pa <= 202.5) //s { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px, py-30, pz+5); } if(pa >= 202.5 && pa <= 247.5)//se { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px+15, py-15, pz+5); } if(pa >= 247.5 && pa <= 292.5)//e { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px+30, py, pz+5); } if(pa >= 292.5 && pa <= 332.5)//e { GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px+15, py+15, pz+5); }}return 1;}
if (strcmp(\"/nrg\", cmdtext, true, 10) == 0) { new vehicleid; new Float:X,Float:Y,Float:Z,Float:Angle; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); GetPlayerVehicleID(playerid); vehicleid = CreateVehicle(522,X,Y,Z,Angle,-1,-1,600); vehicleid = PutPlayerInVehicle(playerid, vehicleid, 0); SendClientMessage(playerid, YELLOW,\"NRG-500-as Sikeressen Lekérve!\"); return 1; }
CMD:rendszam(playerid,params[]){new rszam[32];if(sscanf(params,\"s[50]\",rszam)) return SendClientMessage(playerid,COLOR_BLUE,\"{FFFF00}Használat /rendszam [Újrendszám]\");SetVehicleNumberPlate(GetPlayerVehicleID(playerid),rszam);return 1;}
if (strcmp(\"/disarmme\", cmdtext, true, 10) == 0) { ResetPlayerWeapons(playerid); SendClientMessage(playerid, 0xFF0606FF,\"Lefegyverezted magad!!\");return 1; }
CMD:m4(playerid, params[]){GivePlayerWeapon(playerid,31,5000);GivePlayerMoney(playerid,-10000);SendClientMessage(playerid,0xff0000AA, \"Sikeresen vettél egy M4-et!\");return 1;}
CMD:tryanim(playerid, params[]){new lib[50], anim[50];if(sscanf(params, \"s[50]s[50]\", lib, anim)) return SendClientMessage(playerid, piros, \"Használat: /tryanim [KÖNYVTÁR] [ANIMÁCIÓ]\");ApplyAnimation(playerid, lib, anim, 4.1,1,1,1,1,1,1);//Példa: /tryanim CHAINSAW CSAW_Greturn 1;}