if (strcmp(\"/csata\", cmdtext, true, 10) == 0){ if(IsPlayerInRangeOfPoint(playerid, 3.0, -2223.4092,-265.3366,53.0383)){ if(Team[playerid] == Team_Russia) { ClearAnimations(playerid); SetPlayerPos(playerid, -2514.2200,-309.1688,39.3322); SetPlayerHealth(playerid,100); } else if(Team[playerid] == Team_German) { ClearAnimations(playerid); SetPlayerPos(playerid, -2297.0100,-253.8700,43.2567); SetPlayerHealth(playerid,100); } }}
CMD:heli(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"Állj odébb, mert agyoncsp a helikopter\");new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);AddStaticVehicle(563, X, Y, Z+30,270.4118, 1, 0);return 1;}
itt van pl egy nagyon egyszerû, máskor mûködõ cucc: CMD:heli(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"Állj odébb, mert agyoncsp a helikopter\");new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);AddStaticVehicle(563, X, Y, Z+30,270.4118, 1, 0);return 1;} most hibát ír:gamemodes\\ZCMDTDM.pwn(191) : error 029: invalid expression, assumed zerogamemodes\\ZCMDTDM.pwn(191) : error 017: undefined symbol \"cmd_heli\"gamemodes\\ZCMDTDM.pwn(191) : error 029: invalid expression, assumed zerogamemodes\\ZCMDTDM.pwn(191) : fatal error 107: too many error messages on one linea 191edik sor a CMD:heli
public OnPlayerText(playerid, text[]){CMD:heli(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"Állj odébb, mert agyoncsap a helikopter\");new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);AddStaticVehicle(563, X, Y, Z+30,270.4118, 1, 0);return 1;}//==========================================================================//==feldobásCMD:feldob(playerid, params[]){new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);SetPlayerPos(playerid, X, Y+10, Z+30);return 1;}//========================================================================== //==visszatérés a csatábaCMD:AFK(playerid, params[]){new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);SetPlayerPos(playerid, X, Y, Z+50);SendClientMessage(playerid,WHITE_COLOR,\" AFK lettél!\");TogglePlayerControllable(playerid,0);return 1;}CMD:vissza(playerid, params[]){new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z);SetPlayerPos(playerid, X, Y, Z-50);SendClientMessage(playerid,WHITE_COLOR,\" AFK lettél!\");TogglePlayerControllable(playerid,1);return 1;}//==========================================================================//==csalás kódok single playerbõlCMD:hesoyam(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"================================== \");SendClientMessage(playerid,COLOR_RED,\"Észnél vagy,ember?!? Multiplayerban cheat kódok?\");Kick(playerid);return 1;}CMD:aezakmi(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"================================== \");SendClientMessage(playerid,COLOR_RED,\"Észnél vagy,ember?!? Multiplayerban cheat kódok?\");Kick(playerid);return 1;}CMD:uzumymw(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"================================== \");SendClientMessage(playerid,COLOR_RED,\"Észnél vagy,ember?!? Multiplayerban cheat kódok?\");Kick(playerid);return 1;}CMD:jcnruad(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"================================== \");SendClientMessage(playerid,COLOR_RED,\"Észnél vagy,ember?!? Multiplayerban cheat kódok?\");Kick(playerid);return 1;}//==========================================================================//==tulajCMD:tulajdonos(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"==================================\");SendClientMessage(playerid,COLOR_RED,\"===========Benny Carter===========\");SendClientMessage(playerid,Green_COLOR,\"==================================\");return 1;}//==========================================================================//==parancsokCMD:parancsok(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"===========Segítség============= \");SendClientMessage(playerid,COLOR_RED,\" szerkesztés alatt...\");return 1;}CMD:commands(playerid, params[]){SendClientMessage(playerid,Green_COLOR,\"===========Segítség============= \");SendClientMessage(playerid,COLOR_RED,\" szerkesztés alatt...\");return 1;}CMD:töltés(playerid, params[]){new slot, weap, ammo; for (slot = 0; slot < 14; slot++){GetPlayerWeaponData(playerid, slot, weap, ammo); { GivePlayerWeapon(playerid, weap, 30); }}return 1;}CMD:csata(playerid, params[]){if(IsPlayerInRangeOfPoint(playerid, 3.0, -2223.4092,-265.3366,53.0383)){ if(Team[playerid] == Team_Russia) { ClearAnimations(playerid); SetPlayerPos(playerid, -2514.2200,-309.1688,39.3322); SetPlayerHealth(playerid,100); } else if(Team[playerid] == Team_German) { ClearAnimations(playerid); SetPlayerPos(playerid, -2297.0100,-253.8700,43.2567); SetPlayerHealth(playerid,100); }}}CMD:bolt(playerid, params[]){if(IsPlayerInRangeOfPoint(playerid, 3.0, -2226.8569,-258.1976,53.0456)){ ShowPlayerDialog(playerid, weaponlist, DIALOG_STYLE_LIST,\"Fegyverek\",\" Colt 1911-----100€\\n Deagle--------120€ \\n Shotgun-------100€ \\n Spas 12-------150€ \\n Mac10---------100€ \\n MP5-----------150€ \\n M16-----------180€ \\n AK47----------200€ \\n Sniper--------250€ \\n RPG7----------500€\",\"Választ\",\"Bezár\");}return 1;}return 0;}
de szerintem használj ZCMD-t