[Ajuda] entrarorg ...:D - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] entrarorg ...:D (
/showthread.php?tid=411022)
entrarorg ...:D -
Rodrigo_Avenged - 27.01.2013
Ola , estou criando um /entrarorg
sendo que nao sei como criar um espaзo . tipo /entrarorg 1
nao sei como criar um espaзo , em zcmd ... pra colocar o entrar org ,e o id ;
pawn Код:
CMD:entrarorg(playerid, params[]) // NOVO ENTRAR ORG
{
if(IsPlayerConnected(playerid))
{
new string[128];
new idx;
new x_EntrarOrg[32];
x_EntrarOrg = strtok(params, idx);
if(!strlen(x_EntrarOrg)) {
SendClientMessage(playerid, C_Branco, "USE: /entrarorg [id]");
SendClientMessage(playerid, C_Verde, "Nгo sabe o ID das organizaзхes? /orgs");
}
ProgressaoInfo[playerid][Org] = 1;
ProgressaoInfo[playerid][Cargo] = 4;
SetPlayerSkin(playerid,282);
ProgressaoInfo[playerid][Skin] = 282;
SpawnOrg(playerid);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, C_PMilitar);
format(string, sizeof(string), "Sуcio %s entrou para a organizaзгo: 1", nome);
SendClientMessageToAll(C_Azul, string);
}
Re: entrarorg ...:D -
NuTShoT - 27.01.2013
Olб Rodrigo_Avenged!
Aqui estб minha tentativa tente ai, e me fale.
pawn Код:
CMD:entrarorg(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE,"/irorg [Numero da ORG 01 - 03]");//Edite aqui
return true;
}
if(strcmp(tmp, "1", true) == 0)
{
ProgressaoInfo[playerid][Org] = 1;
ProgressaoInfo[playerid][Cargo] = 4;
SetPlayerSkin(playerid,282);
ProgressaoInfo[playerid][Skin] = 282;
SpawnOrg(playerid);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, C_PMilitar);
format(string, sizeof(string), "Sуcio %s entrou para a organizaзгo: Policia Militar", nome);
SendClientMessageToAll(C_Azul, string);
}
if(strcmp(tmp, "2", true) == 0)
{
ProgressaoInfo[playerid][Org] = 2;
ProgressaoInfo[playerid][Cargo] = 4;
SetPlayerSkin(playerid,282);//Edite aqui
ProgressaoInfo[playerid][Skin] = 282;//Edite aqui
SpawnOrg(playerid);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, C_PMilitar);//Edite aqui
format(string, sizeof(string), "Sуcio %s entrou para a organizaзгo: Rotam", nome);//Edite aqui
SendClientMessageToAll(C_Azul, string);
}
if(strcmp(tmp, "3", true) == 0)
{
ProgressaoInfo[playerid][Org] = 3;
ProgressaoInfo[playerid][Cargo] = 4;
SetPlayerSkin(playerid,282);//Edite aqui
ProgressaoInfo[playerid][Skin] = 282;//Edite aqui
SpawnOrg(playerid);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, C_PMilitar);//Edite aqui
format(string, sizeof(string), "Sуcio %s entrou para a organizaзгo: Exйrcito", nome);//Edite aqui
SendClientMessageToAll(C_Azul, string);
}
}
return true;
}
Respuesta: entrarorg ...:D -
Rodrigo_Avenged - 27.01.2013
valeu , funfou aqui , mudei umas coisas ... rs esse comando nem era zcmd .. rs mas valeu