Pasar esto a ZCMD
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
		if (strcmp("/rayuntamiento", cmdtext, true) == 0) {
		{
		 if(IsPlayerConnected(playerid))
			{
				if(IsPlayerInRangeOfPoint(playerid,5, 1479.5304,-1768.7941,14.8198))
					{
						SetTimer("ayuntar1", 20000, 0);
						SetTimer("ayuntar2", 40000, 0);
						SendClientMessage(playerid,COLOR_AMARILLO,"[SAMS] Comienzan las obras de reparaciуn del ayuntamiento.");
						return 1;
						}
					}
				else
				{
				SendClientMessage(playerid, COLOR_GRAD2, "No estбs en el lugar de los hechos");
				return 1;
				}
			}
		}
        if (strcmp("/atentado", cmdtext, true) == 0) {
		{
			if(IsPlayerConnected(playerid))
				{
					if(IsPlayerInRangeOfPoint(playerid,5, 1479.5304,-1768.7941,14.8198))
					{
						SetTimer("BombAyunta", 20000, 0);
						SendClientMessage(playerid,COLOR_AMARILLO,"[SAMS] Una organizaciуn paramilitar activу una Bomba en el ayuntamiento.");
						SendClientMessage(playerid,COLOR_AMARILLO,"[SAMS] Explotarб en aproximadamente 30 segundos, desalojen el бrea.");
					 	return 1;
						 }
					}
				}
			return 1;
		}
	return 0;
}
public BombAyunta()
{
CreateExplosion(1925.1090,158.5584,56.1953, 6, 50);
CreateExplosion(1484.4589,-1768.7817,21.9200, 0, 50);
CreateExplosion(1476.3575,-1768.7352,21.9200, 7, 50);
CreateExplosion(1467.2186,-1768.0676,15.1084, 1, 50);
CreateExplosion(1454.6178,-1775.9434,18.4791, 3, 50);
CreateExplosion(1445.8269,-1776.5107,23.1687, 4, 50);
CreateExplosion(1427.1674,-1773.4142,23.1687, 8, 50);
CreateExplosion(1479.5304,-1768.7941,14.8198, 13, 50);
CreateExplosion(1512.7782,-1776.5568,21.9200, 13, 50);
DestroyObject(bomb1);
DestroyObject(bomb2);
}
Reply


Messages In This Thread
Pasar esto a ZCMD - by Glimma - 30.05.2012, 21:54
Respuesta: Pasar esto a ZCMD - by Dx2 - 30.05.2012, 22:05
Respuesta: Pasar esto a ZCMD - by Glimma - 30.05.2012, 22:31
Respuesta: Pasar esto a ZCMD - by El Bardo - 30.05.2012, 22:40
Respuesta: Pasar esto a ZCMD - by Glimma - 30.05.2012, 22:43
Respuesta: Pasar esto a ZCMD - by TheChaoz - 30.05.2012, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)