public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/sniper\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 34, 200);SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\");return 1; } if (strcmp(\"/ak47\", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 30, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (strcmp(\"/m4\", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 31, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (strcmp(\"/mp5\", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 29, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); } if (strcmp(\"/rifle\", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 33, 200); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (strcmp(\"/desert\", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 24, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (strcmp(\"/shotgun\", cmdtext, true, 10) == 0) GivePlayerWeapon(playerid, 25, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\");return 1;}
public OnPlayerCommandText(playerid, cmdtext[]){ new cmd[256], idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, \"/sniper\", true) == 0) { GivePlayerWeapon(playerid, 34, 200); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if(strcmp(cmd, \"/ak47\", true) == 0) { GivePlayerWeapon(playerid, 30, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if(strcmp(cmd, \"/m4\", true) == 0) { GivePlayerWeapon(playerid, 31, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if(strcmp(cmd, \"/mp5\", true) == 0) { GivePlayerWeapon(playerid, 29, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); } if(strcmp(cmd, \"/rifle\", true) == 0) { GivePlayerWeapon(playerid, 33, 200); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if(strcmp(cmd, \"/desert\", true) == 0) { GivePlayerWeapon(playerid, 24, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if(strcmp(cmd, \"/shotgun\", true) == 0) GivePlayerWeapon(playerid, 25, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1;}
public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp(\"/sniper\", cmdtext, true)) { GivePlayerWeapon(playerid, 34, 200); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (!strcmp(\"/ak47\", cmdtext, true)) { GivePlayerWeapon(playerid, 30, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (!strcmp(\"/m4\", cmdtext, true)) { GivePlayerWeapon(playerid, 31, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (!strcmp(\"/mp5\", cmdtext, true)) { GivePlayerWeapon(playerid, 29, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); } if (!strcmp(\"/rifle\", cmdtext, true)) { GivePlayerWeapon(playerid, 33, 200); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (!strcmp(\"/desert\", cmdtext, true)) { GivePlayerWeapon(playerid, 24, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } if (!strcmp(\"/shotgun\", cmdtext, true)) { GivePlayerWeapon(playerid, 25, 500); SendClientMessage(playerid, 0xFF9933AA, \"Fegyver lekérve!\"); return 1; } }