SA-MP Forums Archive
[GameMode] [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! (/showthread.php?tid=58452)



[GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - Pepet0x - 17.12.2008

Counter-Strike 1.6 Mod
Today I had the idea of making a gamemode for SA-MP that is like Counter-Strike 1.6, so.. I started doing it and now here it is.

It consists of a Counter-Terrorists team, a Terrorists team, and a Spectators team too. The spectators team has CJ skin, and spawn with infinite health (bah, about 100000 health so..) and no guns, so they just see the game.

The game takes place at the oil refinery north of Las Venturas.

Players can buy weapons with /buy command. Then they have a list of weapons, which have their same names and prices as in Counter-Strike, and you can buy them by writing '/buy [Weapon ID]'. For example: /buy 4 (Shotgun I think).

I hope you like it! And if you don't, please go easy on me :P. I'm pretty new and noobish on scripting.

Also, I'd appreciate if someone could help me with /help and /kill commands. They are there if you look around the script, but they don't work in game .

EDIT: I've done version 0.1b, where I fixed a bug because of which Spectators could buy weapons

Download link: http://www.sendspace.com/file/sd38nb


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - Pepet0x - 17.12.2008

Haha, thanks. I'm glad the great Seif liked it :P

I used CJ because well.. I don't really know how to make a /spec command or something of the sort.

Btw I use some of your FS's on my server, really great!
I just couldnt get seifeath to work


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - [SFSF]Ali - 18.12.2008

i know how to make /help command and /teleport commands! for example (to make a help command):
PAWN Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
SendClientMessage(playerid, 0xFF9900AA, "/teleport for list of teleports and /rules for the rules");
{

return 1;
}
return 0;
}
Note: its only an examp dont use!


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - [SFSF]Ali - 18.12.2008

here are the codes for colors:
COLOR_GREY 0xAFAFAFAA
COLOR_RED 0xAA3333AA
COLOR_YELLOW 0xFFFF00AA
COLOR_PINK 0xFF66FFAA
COLOR_BLUE 0x0000BBAA
COLOR_WHITE 0xFFFFFFAA
COLOR_LIGHTBLUE 0x33CCFFAA
COLOR_DARKRED 0x660000AA
COLOR_ORANGE 0xFF9900AA
COLOR_BRIGHTRED 0xFF0000AA
COLOR_INDIGO 0x4B00B0AA
COLOR_VIOLET 0x9955DEEE
COLOR_LIGHTRED 0xFF99AADD
COLOR_SEAGREEN 0x00EEADDF
COLOR_GRAYWHITE 0xEEEEFFC4
COLOR_LIGHTNEUTRALBLUE 0xabcdef66
COLOR_GREENISHGOLD 0xCCFFDD56
COLOR_LIGHTBLUEGREEN 0x0FFDD349
COLOR_NEUTRALBLUE 0xABCDEF01
COLOR_LIGHTCYAN 0xAAFFCC33
COLOR_LEMON 0xDDDD2357
COLOR_MEDIUMBLUE 0x63AFF00A
COLOR_NEUTRAL 0xABCDEF97
COLOR_BLACK 0x00000000
COLOR_NEUTRALGREEN 0x81CFAB00
COLOR_DARKGREEN 0x12900BBF
COLOR_LIGHTGREEN 0x24FF0AB9
COLOR_DARKBLUE 0x300FFAAB
COLOR_BLUEGREEN 0x46BBAA00
COLOR_PINK 0xFF66FFAA
COLOR_LIGHTBLUE 0x33CCFFAA
COLOR_DARKRED 0x660000AA
COLOR_ORANGE 0xFF9900AA
COLOR_PURPLE 0x800080AA
COLOR_GRAD1 0xB4B5B7FF
COLOR_GRAD2 0xBFC0C2FF
COLOR_RED1 0xFF0000AA
COLOR_GREY 0xAFAFAFAA
COLOR_GREEN 0x33AA33AA
COLOR_RED 0xAA3333AA
COLOR_YELLOW 0xFFFF00AA
COLOR_WHITE 0xFFFFFFAA
COLOR_BROWN 0x993300AA
COLOR_CYAN 0x99FFFFAA
COLOR_TAN 0xFFFFCCAA
COLOR_PINK 0xFF66FFAA
COLOR_KHAKI 0x999900AA
COLOR_LIME 0x99FF00AA
COLOR_SYSTEM 0xEFEFF7AA
COLOR_GRAD2 0xBFC0C2FF
COLOR_GRAD4 0xD8D8D8FF
COLOR_GRAD6 0xF0F0F0FF
COLOR_GRAD2 0xBFC0C2FF
COLOR_GRAD3 0xCBCCCEFF
COLOR_GRAD5 0xE3E3E3FF
COLOR_GRAD1 0xB4B5B7FF
i hope they helped all credits of these go to yaheli high roller member


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - MenaceX^ - 18.12.2008

Quote:
Originally Posted by [SFSF
Ali ]
here are the codes for colors:
COLOR_GREY 0xAFAFAFAA
COLOR_RED 0xAA3333AA
COLOR_YELLOW 0xFFFF00AA
COLOR_PINK 0xFF66FFAA
COLOR_BLUE 0x0000BBAA
COLOR_WHITE 0xFFFFFFAA
COLOR_LIGHTBLUE 0x33CCFFAA
COLOR_DARKRED 0x660000AA
COLOR_ORANGE 0xFF9900AA
COLOR_BRIGHTRED 0xFF0000AA
COLOR_INDIGO 0x4B00B0AA
COLOR_VIOLET 0x9955DEEE
COLOR_LIGHTRED 0xFF99AADD
COLOR_SEAGREEN 0x00EEADDF
COLOR_GRAYWHITE 0xEEEEFFC4
COLOR_LIGHTNEUTRALBLUE 0xabcdef66
COLOR_GREENISHGOLD 0xCCFFDD56
COLOR_LIGHTBLUEGREEN 0x0FFDD349
COLOR_NEUTRALBLUE 0xABCDEF01
COLOR_LIGHTCYAN 0xAAFFCC33
COLOR_LEMON 0xDDDD2357
COLOR_MEDIUMBLUE 0x63AFF00A
COLOR_NEUTRAL 0xABCDEF97
COLOR_BLACK 0x00000000
COLOR_NEUTRALGREEN 0x81CFAB00
COLOR_DARKGREEN 0x12900BBF
COLOR_LIGHTGREEN 0x24FF0AB9
COLOR_DARKBLUE 0x300FFAAB
COLOR_BLUEGREEN 0x46BBAA00
COLOR_PINK 0xFF66FFAA
COLOR_LIGHTBLUE 0x33CCFFAA
COLOR_DARKRED 0x660000AA
COLOR_ORANGE 0xFF9900AA
COLOR_PURPLE 0x800080AA
COLOR_GRAD1 0xB4B5B7FF
COLOR_GRAD2 0xBFC0C2FF
COLOR_RED1 0xFF0000AA
COLOR_GREY 0xAFAFAFAA
COLOR_GREEN 0x33AA33AA
COLOR_RED 0xAA3333AA
COLOR_YELLOW 0xFFFF00AA
COLOR_WHITE 0xFFFFFFAA
COLOR_BROWN 0x993300AA
COLOR_CYAN 0x99FFFFAA
COLOR_TAN 0xFFFFCCAA
COLOR_PINK 0xFF66FFAA
COLOR_KHAKI 0x999900AA
COLOR_LIME 0x99FF00AA
COLOR_SYSTEM 0xEFEFF7AA
COLOR_GRAD2 0xBFC0C2FF
COLOR_GRAD4 0xD8D8D8FF
COLOR_GRAD6 0xF0F0F0FF
COLOR_GRAD2 0xBFC0C2FF
COLOR_GRAD3 0xCBCCCEFF
COLOR_GRAD5 0xE3E3E3FF
COLOR_GRAD1 0xB4B5B7FF
i hope they helped all credits of these go to yaheli high roller member
Lol -.-
Yaheli didn't create these colors. So why would he give him credit?..
Don't say things you don't know
About the mod, I wanna see how it's works. But only after school =D


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - Dujma - 18.12.2008

I was thinking about this a couple of mounth ago. How it would be to make SA-MP CS server. And it is very possible and it can be done allmost indentical as the original CS. The buy menu using OnPlayerKeyStateChange and PlayerToPoint, killmessage when someone kills someone, maps like dust (in desert) and other. It can be made but it need a lot of work and time.


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - LarzI - 18.12.2008

Nice, was working on a similar script, but I gave it up...
I had with key states (I think...) and menus, but it bugged up :P

Going to try it


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - VenZen - 18.12.2008

mistake: spectator can buy weapons its no good think



Re: [GM] Counter-Strike 1.6 Mod - v0.1 - Pepet0x - 18.12.2008

Quote:
Originally Posted by [SFSF
Ali ]
i know how to make /help command and /teleport commands! for example (to make a help command):
PAWN Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
SendClientMessage(playerid, 0xFF9900AA, "/teleport for list of teleports and /rules for the rules");
{

return 1;
}
return 0;
}
Note: its only an examp dont use!
Uhh, thanks, but i do know how to make a command

And what's more I did it like that as I always do, yet it didnt work. I'm currently figuring it out and as soon i get it to work I'll release the new version. I'm also working on the bomb system

Also thanks for so many colors but i won't be needing them

Quote:
Originally Posted by VenZen
mistake: spectator can buy weapons its no good think
Oh lol thanks for telling me :P I hadn't noticed that. I'll change it right away

EDIT: Done. Version 0.1b is out! I'm currently working on the /help and /kill commands


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - toksiks - 18.12.2008

Interesting


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - VenZen - 18.12.2008

no problem i can help you but my english is too bad, but this mode can be great good area, good direction select....


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - LarzI - 18.12.2008

I got errors while compiling...

Don't have time to post them right now, but I will later...


Re: [GM] Counter-Strike 1.6 Mod - v0.1 - Mikep - 18.12.2008

Quote:
Originally Posted by [SFSF
Ali ]
i know how to make /help command and /teleport commands! for example (to make a help command):
PAWN Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
SendClientMessage(playerid, 0xFF9900AA, "/teleport for list of teleports and /rules for the rules");
{

return 1;
}
return 0;
}
Note: its only an examp dont use!
Fail.


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - LarzI - 19.12.2008

Mike, you're a fail...
Seif has already said that it even won't work, so why bother reply for the same reason?


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - Yhas26 - 19.12.2008

any ss?


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - Jerret - 04.02.2011

:O CS:S Script lol not for me..


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - admantis - 04.02.2011

Why you call it 1.6?


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - Marty_Alex - 05.02.2011

Good GM mate


Re: [GM] Counter-Strike 1.6 Mod - v0.1b IS OUT! - ilikenuts - 06.02.2011

IF you want help with commands i help u!
I can make them Fast