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;
}