Код:
if (strcmp("/brassknuckles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 1, 999);*
return 1;
}
if (strcmp("/golfclub", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 2, 999);*
return 1;
}
if (strcmp("/nitestick", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 3, 999);*
return 1;
}
if (strcmp("/knife", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 4, 999);*
return 1;
}
if (strcmp("/baseballclub", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 5, 999);*
return 1;
}
if (strcmp("/shovel", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 6, 999);*
return 1;
}
if (strcmp("/poolcue", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 7, 999);*
return 1;
}
if (strcmp("/katana", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 8, 999);*
return 1;
}
if (strcmp("/chainsaw", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 9, 999);*
return 1;
}
if (strcmp("/purpledildo, cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 10, 999);*
return 1;
}
if (strcmp("/smallwhitevibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 11, 999);*
return 1;
}
if (strcmp("/largewhitevibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 12, 999);*
return 1;
}
if (strcmp("/silvervibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 13, 999);*
return 1;
}
if (strcmp("/flowers", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 14, 999);*
return 1;
}
if (strcmp("/cane", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 15, 999);*
return 1;
}
if (strcmp("/grenade", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 16, 999);*
return 1;
}
if (strcmp("/teargas", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 17, 999);*
return 1;
}
if (strcmp("/molotovcocktail", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 18, 999);*
return 1;
}
if (strcmp("/9mm", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 22, 999);*
return 1;
}
if (strcmp("/silenced9mm", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 23, 999);*
return 1;
}
if (strcmp("/deserteagle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 24, 999);*
return 1;
}
if (strcmp("/shotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 25 999);*
return 1;
}
if (strcmp("/sawnoffshotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 26, 999);*
return 1;
}
if (strcmp("/combatshotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 27, 999);*
return 1;
}
if (strcmp("/microsmg", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 28, 999);*
return 1;
}
if (strcmp("/mp5", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 29, 999);*
return 1;
}
if (strcmp("/ak47", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 30, 999);*
return 1;
}
if (strcmp("/m4", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 31, 999);*
return 1;
}
if (strcmp("/tec9", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 32, 999);*
return 1;
}
if (strcmp("/countryrifle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 33, 999);*
return 1;
}
if (strcmp("/sniperrifle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 34, 999);*
return 1;
}
if (strcmp("/rocketlauncher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 35, 999);*
return 1;
}
if (strcmp("/hsrocketlauncher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 36, 999);*
return 1;
}
if (strcmp("/flamethrower", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 37, 999);*
return 1;
}
if (strcmp("/minigun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 38, 999);*
return 1;
}
if (strcmp("/satchelcharge", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 39, 999);*
return 1;
}
if (strcmp("/detonator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 40, 999);*
return 1;
}
if (strcmp("/spraycan", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 41, 999);*
return 1;
}
if (strcmp("/fireextinguisher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 42, 999);*
return 1;
}
if (strcmp("/camera", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 43, 999);*
return 1;
}
if (strcmp("/nightvisiongoggles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 44, 999);*
return 1;
}
if (strcmp("/thermalvisiongoggles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 45, 999);*
return 1;
}
if (strcmp("/parachute", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 46, 999);*
return 1;
}
if (strcmp("/weaps", cmdtext, true, 10) == 0)
}
SendClientMessage(playerid, 0xC2A2DAAA "/brassknuckles, /golfclub, /nitestick, /knife, /baseballclub, /shovel, /poolcue, /katana, /chainsaw, /purpledildo, /smallwhitevibrator, /largewhitevibrator, /silvervibrator, /flowers, /cane, /grenade, /teargas, /molotovcocktail, /9mm, /silenced9mm, /deserteagle, /shotgun, /sawnoffshotgun, /combatshotgun, /microsmg, /mp5, /ak47, /m4, /tec9, /countryrifle, /sniperrifle, /rocketlauncher, /hsrocketlauncher, /flamethrower, /minigun, /satchelcharge, /detonator, /spraycan, /fireextinguisher, /nightvisiongoggles, /thermalvisiongoggles, /parachute"); **
return 1;
}
Simple, but nice. Next time try with pastebin.
Wow that's alot of commands heh.
It may be simple, but some will definitely find it very useful! Maybe your next release will be a Weapon Dialog with weapons that cost ***$. Scripting only improves, so good luck.
.
Код:
SendClientMessage(playerid, WHITE, " /brassknuckles, /golfclub, /nitestick, /knife, /baseballclub, /shovel, /poolcue ");
SendClientMessage(playerid, WHITE, " /katana, /chainsaw, /purpledildo, /smallwhitevibrator, /largewhitevibrator, /silvervibrator ");
SendClientMessage(playerid, WHITE, " /flowers, /cane, /grenade, /teargas, /molotovcocktail, /9mm, /silenced9mm, /deserteagle, /shotgun ");
SendClientMessage(playerid, WHITE, " /sawnoffshotgun, /combatshotgun, /microsmg, /mp5, /ak47, /m4, /tec9, /countryrifle, /sniperrifle, /rocketlauncher ");
SendClientMessage(playerid, WHITE, " /hsrocketlauncher, /flamethrower, /minigun, /satchelcharge, /detonator, /spraycan, /fireextinguisher");
SendClientMessage(playerid, WHITE, " /nightvisiongoggles, /thermalvisiongoggles, /parachute ");
return 1;
Instead of it being all on the same line, but thats up to you! if you do decide to use that method, then don't forget to