cops on my GM
#1

Hello!

i need some help to add cop commnds to my GM, its a custom script who a guy made to me but didnґt finish it, so i need someoe to take a look on my script and show me how to add the commands for cops only. and give some advice what i should add in the script.

Intrested to help? PM me
Reply
#2

pawn Code:
if(strcmp(cmd, "/copweapons", true) == 0)
{
  if (gTeam[playerid] == TEAM_COP)
  {
  GivePlayerWeapon(playerid, 22, 60); // 9MM with 60 ammo's
  GivePlayerWeapon(playerid, 25, 100); // Shotgun with 100 ammo's
  GivePlayerMoney(playerid, -100); // Price for weapons
  }
  else
  {
  SendClientMessage(playerid, 0xFF6347AA, "This command is only for cops!");
  }
  return 1;
}
Reply
#3

Quote:
Originally Posted by Vladis
pawn Code:
if(strcmp(cmd, "/copweapons", true) == 0)
{
  if (gTeam[playerid] == TEAM_COP)
  {
  GivePlayerWeapon(playerid, 22, 60); // 9MM with 60 ammo's
  GivePlayerWeapon(playerid, 25, 100); // Shotgun with 100 ammo's
  GivePlayerMoney(playerid, -100); // Price for weapons
  }
  else
  {
  SendClientMessage(playerid, 0xFF6347AA, "This command is only for cops!");
  }
  return 1;
}
i dont thing this GM have gteam. bc i cant find anything bout gteam
Reply
#4

Create it, or show me the gamemode.
Reply
#5

Quote:
Originally Posted by Vladis
Create it, or show me the gamemode.
it has cop fbi and army..but i dont know what way it is build. and i dont want to paste my GM here. PM me and i can send u my GM via mail or msn
Reply
#6

Do you know something about scripting?
Reply
#7

To be honest, no. but i can removing and modify a already existing scrip like i want it. like remove houses, icons, cars, add cars, make houses, simply stuffs. and if my english would be better i had learn PAWNO, but i cant.
Reply
#8

pawn Code:
if(strcmp(cmd, "/copweapons", true) == 0)
{
  if (GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286 )
  {
  GivePlayerWeapon(playerid, 22, 60); // 9MM with 60 ammo's
  GivePlayerWeapon(playerid, 25, 100); // Shotgun with 100 ammo's
  GivePlayerMoney(playerid, -100); // Price for weapons
  }
  else
  {
  SendClientMessage(playerid, 0xFF6347AA, "This command is only for cops!");
  }
  return 1;
}
You can add more skins if you want.
Reply
#9

Making cop commands, by skins
Reply
#10

ill have 60 skins already. that script i have have some houses and cars, factions, cop, army, fbi. car ownership, bank/register. its just that i miss some more commands for admin and the factions, jobs to earn money, biz. cant find any biz maker thats works for me.
Reply
#11

Quote:
Originally Posted by !Pujan
pawn Код:
if(strcmp(cmd, "/copweapons", true) == 0)
{
  if (GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286 )
  {
  GivePlayerWeapon(playerid, 22, 60); // 9MM with 60 ammo's
  GivePlayerWeapon(playerid, 25, 100); // Shotgun with 100 ammo's
  GivePlayerMoney(playerid, -100); // Price for weapons
  }
  else
  {
  SendClientMessage(playerid, 0xFF6347AA, "This command is only for cops!");
  }
  return 1;
}
You can add more skins if you want.
thanks for the command it works fine.. but
Код:
if(strcmp(cmd, "/copweapons", true) == 0)
warning 217: loose indentation

and get a warning at my hous /hlock command
Код:
if(strcmp(cmd, "/hlock", true) == 0)
warning 217: loose indentation
Reply
#12

Dont wory about Loose Indentation.
Reply
#13

Quote:
Originally Posted by |$pider|
Dont wory about Loose Indentation.
ok thanks
Reply
#14

help me plz whit this eror

C:\Program Files\Rockstar Games\GTA San Andreas\samp server\gamemodes\RPG.pwn(397) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)