cops on my GM -
cruising - 14.10.2008
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
Re: cops on my GM -
Vladis - 15.10.2008
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;
}
Re: cops on my GM -
cruising - 16.10.2008
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
Re: cops on my GM -
Vladis - 16.10.2008
Create it, or show me the gamemode.
Re: cops on my GM -
cruising - 17.10.2008
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
Re: cops on my GM -
Vladis - 17.10.2008
Do you know something about scripting?
Re: cops on my GM -
cruising - 17.10.2008
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.
Re: cops on my GM -
flakey - 17.10.2008
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.
Re: cops on my GM -
Vladis - 17.10.2008
Making cop commands, by skins
Re: cops on my GM -
cruising - 17.10.2008
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.
Re: cops on my GM -
cruising - 17.10.2008
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
Re: cops on my GM -
|CrippinBloodDrippin| - 17.10.2008
Dont wory about Loose Indentation.
Re: cops on my GM -
cruising - 17.10.2008
Quote:
Originally Posted by |$pider|
Dont wory about Loose Indentation.
|
ok thanks
Re: cops on my GM -
CrazyMaoam - 16.12.2009
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.