25.06.2012, 20:49
deberia de andar
pawn Код:
if(strcmp("/Atraco", cmdtext, true, 10) == 0)
{
if(GetPlayerWeapon(playerid) >= 24) {
if(IsPlayerInRangeOfPoint(playerid,10,1033.1263,-1890.8000,3478.2932)) {
new total;
for(new i=0,j=GetMaxPlayers(); i < j; i++) {
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,10,1033.1263,-1890.8000,3478.2932)) {
total++;
}
}
if(total >= Personas_Requeridas) {
SendClientMessage(playerid, Rojo, "* Estais Atracando!");
}
else {
SendClientMessage(playerid, Rojo, "Se necesitan dos personas para poder atracar.");
}
}
else {
SendClientMessage(playerid, Rojo, "No estas en el banco.");
}
}
else {
SendClientMessage(playerid, Rojo, "Necesitas un arma");
}
return 1;
}