Hello ! Ezt az egyik oldalon találtam .
Gondoltam megosztom veletek . A script lényege Counter Strike -os szöveg jön be ha beirod a parancsot
/*---------------------------
Cs Radio by SkL_MD
Don\'t change this credits
---------------------------*/
#include <a_samp>
static gTeam[MAX_PLAYERS];
#define COLOR_RED 0xAA3333AA
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/1\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : I need of support.\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/2\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : Cover me !\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/3\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : Follow me !\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/4\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : Spotted enemies.\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/5\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : I am put\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/6\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : I am hurt.\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/7\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : Grenade !\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/8\", true) == 0){
new Nom[MAX_PLAYER_NAME];
new Text[256];
GetPlayerName(playerid, Nom, sizeof(Nom));
format(Text, sizeof(Text), \"%s : GO GO GO !\", Nom);
SendClientMessage(gTeam[playerid]==1, COLOR_RED, Text);
}
if(strcmp(cmdtext, \"/Radio\", true) == 0)
{
SendClientMessage(playerid, COLOR_RED, \"/1 = I need of support.\");
SendClientMessage(playerid, COLOR_RED, \"/2 = Cover me !\");
SendClientMessage(playerid, COLOR_RED, \"/3 = Follow me !\");
SendClientMessage(playerid, COLOR_RED, \"/4 = Spotted enemies.\");
SendClientMessage(playerid, COLOR_RED, \"/5 = I am put\");
SendClientMessage(playerid, COLOR_RED, \"/6 = I am hurt.\");
SendClientMessage(playerid, COLOR_RED, \"/7 = Grenade !\");
SendClientMessage(playerid, COLOR_RED, \"/8 = GO GO GO !\");
return 1;
}
return 1;
}
Eredeti link :
http://forum.sa-mp.com/showthread.php?t=347652