if (strcmp(cmdtext, "/armas", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2195.8303222656,-1108.3533935547,25.130044937134)) { SendClientMessage(playerid,0xAC0B27FF,"Armas Zumbis / use: /armas ID. "); SendClientMessage(playerid,0xAC0B27FF,"(PБ)ID 1 R$100(KATANA)ID 2 R$300(CANO)ID 3 R$100(FACA)ID 4 R$100. "); SendClientMessage(playerid,0xAC0B27FF,"(SERRA ELETRICA)ID 5 R$1000. "); } return 1; } if (strcmp("/armas 1", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2195.8303222656,-1108.3533935547,25.130044937134)) { if(GetPlayerMoney(playerid) <= pa*100) return SendClientMessage(playerid,0xAC0B27FF,"Vocк Nгo tem dinheiro!"); GivePlayerMoney(playerid, -pa*100); } return 1; } if (strcmp("/armas 2", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2195.8303222656,-1108.3533935547,25.130044937134)) { if(GetPlayerMoney(playerid) <= kat*300) return SendClientMessage(playerid,0xAC0B27FF,"Vocк Nгo tem dinheiro!"); GivePlayerMoney(playerid, -kat*300); } return 1; } |
if (strcmp(cmdtext, "/comando", true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2195.8303222656,-1108.3533935547,25.130044937134))
return SendClientMessage(playerid,0xAC0B27FF,"Vocк nгo estб no local correto!");
tmp = strtok(cmdtext,Index);
new n = strval(tmp);
if(!strlen(tmp) || (n < 1 && n > 3))
return SendClientMessage(playerid,COLOR_GREY,"-OperServ- Uso: /comando [1/3]");
if(type == 1)
return SendClientMessage(playerid,0xAC0B27FF,"Vocк escolheu o comando 1");
if(type == 2)
return SendClientMessage(playerid,0xAC0B27FF,"Vocк escolheu o comando 2!");
if(type == 3)
return SendClientMessage(playerid,0xAC0B27FF,"Vocк escolheu o comando 3");
return 1;
}
if(strcmp(cmd, "/armas", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Vocк estб offline");
new j_[MAX_PLAYER_NAME]; j_ = strtok(cmdtext, idx);
if(!strlen(j_)) return SendClientMessage(playerid, -1, "/armas [1-2-3]");
if(strcmp(j_,"1",true) == 0) {
//faзa o que vocк quiser aqui...
}
else if(strcmp(j_,"2",true) == 0) {
//faзa o que vocк quiser aqui...
}
else if(strcmp(j_,"3",true) == 0) {
//faзa o que vocк quiser aqui...
}
else return SendClientMessage(playerid, -1, "Ultilize de 1 a 3.");
return 0x01;
}
if(strcmp(cmd, "/armas", true) == 0) {
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Vocк estб offline");
tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/armas [1-2-3]");
new armaid = strval(tmp);
if(armaid < 1 || armaid > 3) return SendClientMessage(playerid, -1, "Use: /armaid 1-3");
if(armaid == 1 && IsPlayerInRangeOfPoint(playerid, 15.0, X,Y,Z) ) return SendClientMessage(playerid, -1, "Kit 1 de armas.");
else if(armaid == 2 && IsPlayerInRangeOfPoint(playerid, 15.0, X,Y,Z) ) return SendClientMessage(playerid, -1, "Kit 1 de armas.");
else if(armaid == 3 && IsPlayerInRangeOfPoint(playerid, 15.0, X,Y,Z) ) return SendClientMessage(playerid, -1, "Kit 1 de armas.");
return 0x01;
}
if(strcmp(cmd, "/armas", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Vocк estб offline");
//Outras funзхes...
return 0x01;
}
if (strcmp(cmdtext, "/entrar", true) ==0)//ENTRAR NA PREFEITURA { if(IsPlayerInRangeOfPoint(playerid, 7.0, 1378.7239990234,-1753.1411132813,14.140625)) { SetPlayerInterior(playerid,5); SetPlayerPos(playerid, 774.19915771484,-50.189094543457,1000.5859375); SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Box!"); } if(IsPlayerInRangeOfPoint(playerid, 7.0, 1791.7954101563,1163.5073242188,23.828125)) { SetPlayerInterior(playerid,5); SetPlayerPos(playerid, 773.92553710938,-78.552040100098,1000.6627197266); SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Kung-Fu!"); } return 1; } if (strcmp(cmdtext, "/sair", true) ==0)//ENTRAR NA PREFEITURA { if(IsPlayerInRangeOfPoint(playerid, 7.0,774.19915771484,-50.189094543457,1000.5859375)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1378.7239990234,-1753.1411132813,14.140625); SendClientMessage(playerid,0x0000FF83,"Vocк saiu da Academia de Box!"); } if(IsPlayerInRangeOfPoint(playerid, 7.0,773.92553710938,-78.552040100098,1000.6627197266)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1791.7954101563,1163.5073242188,23.828125); SendClientMessage(playerid,0x0000FF83,"Vocк saiu da Academia de Kung-FU!"); } return 1; } |
if (strcmp(cmdtext, "/entrar", true) ==0)//ENTRAR NA PREFEITURA
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1378.7239990234,-1753.1411132813,14.140625))
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, 774.19915771484,-50.189094543457,1000.5859375);
SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Box!");
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1791.7954101563,1163.5073242188,23.828125))
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, 773.92553710938,-78.552040100098,1000.6627197266);
SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Kung-Fu!");
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, /*CorX, Cory, Corz*/))
{
// Funзхes
}
return 1;
}
if ( strcmp(cmdtext, "/entrar", true) == 0) {
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1378.7239990234,-1753.1411132813,14.140625)) {
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, 774.19915771484,-50.189094543457,1000.5859375);
SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Box!");
return 0x01;
}
else if(IsPlayerInRangeOfPoint(playerid, 7.0, 1791.7954101563,1163.5073242188,23.828125)) {
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, 773.92553710938,-78.552040100098,1000.6627197266);
SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Kung-Fu!");
}
else if(IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z)) {
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, X,Y,Z);
SendClientMessage(playerid,0x0000FF83,"Vocк Entrou na Academia de Kung-Fu!");
}
return 0x01;
}